C# Class AIA.Particle

Contains most of the internal physics properties of a sprite
Afficher le fichier Open project: ArtificialIntelligenceApproximations/AIA Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
Move ( GameTime p_gameTime ) : void
UpdateAcceleration ( GameTime p_gameTime ) : void
UpdateVelocity ( GameTime p_gameTime ) : void

Method Details

ApplyForce() public méthode

public ApplyForce ( Vector2 p_Force ) : void
p_Force Vector2
Résultat void

ApplyImpulse() public méthode

public ApplyImpulse ( ) : void
Résultat void

Update() public méthode

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
Résultat void

Zero() public méthode

This method handles moving the particle
public Zero ( ) : void
Résultat void