C# Class AIA.Particle

Contains most of the internal physics properties of a sprite
Show file Open project: ArtificialIntelligenceApproximations/AIA Class Usage Examples

Public Methods

Method Description
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

Private Methods

Method Description
Move ( GameTime p_gameTime ) : void
UpdateAcceleration ( GameTime p_gameTime ) : void
UpdateVelocity ( GameTime p_gameTime ) : void

Method Details

ApplyForce() public method

public ApplyForce ( Vector2 p_Force ) : void
p_Force Vector2
return void

ApplyImpulse() public method

public ApplyImpulse ( ) : void
return void

Update() public method

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
return void

Zero() public method

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