C# 클래스 AIA.Particle

Contains most of the internal physics properties of a sprite
파일 보기 프로젝트 열기: ArtificialIntelligenceApproximations/AIA 1 사용 예제들

공개 메소드들

메소드 설명
ApplyForce ( Vector2 p_Force ) : void
ApplyImpulse ( ) : void
Update ( GameTime p_gameTime ) : void

Position - Uses SUVATs based on accel + veloicty to work out screen pos change since last frame

Zero ( ) : void

This method handles moving the particle

비공개 메소드들

메소드 설명
Move ( GameTime p_gameTime ) : void
UpdateAcceleration ( GameTime p_gameTime ) : void
UpdateVelocity ( GameTime p_gameTime ) : void

메소드 상세

ApplyForce() 공개 메소드

public ApplyForce ( Vector2 p_Force ) : void
p_Force Vector2
리턴 void

ApplyImpulse() 공개 메소드

public ApplyImpulse ( ) : void
리턴 void

Update() 공개 메소드

Position - Uses SUVATs based on accel + veloicty to work out screen pos change since last frame
public Update ( GameTime p_gameTime ) : void
p_gameTime Microsoft.Xna.Framework.GameTime
리턴 void

Zero() 공개 메소드

This method handles moving the particle
public Zero ( ) : void
리턴 void