C# Class Nez.Verlet.Particle

Afficher le fichier Open project: prime31/Nez Class Usage Examples

Méthodes publiques

Свойство Type Description
collidesWithColliders bool
lastPosition Microsoft.Xna.Framework.Vector2
mass float
position Microsoft.Xna.Framework.Vector2
radius float

Méthodes publiques

Méthode Description
Particle ( Vector2 position ) : Microsoft.Xna.Framework
Particle ( float x, float y ) : Microsoft.Xna.Framework
applyForce ( Vector2 force ) : void

applies a force taking mass into account to the Particle

pin ( ) : Particle

pins the Particle to its current position

pinTo ( Vector2 position ) : Particle

pins the particle to the specified position

unpin ( ) : Particle

unpins the particle setting it free like the wind

Method Details

Particle() public méthode

public Particle ( Vector2 position ) : Microsoft.Xna.Framework
position Microsoft.Xna.Framework.Vector2
Résultat Microsoft.Xna.Framework

Particle() public méthode

public Particle ( float x, float y ) : Microsoft.Xna.Framework
x float
y float
Résultat Microsoft.Xna.Framework

applyForce() public méthode

applies a force taking mass into account to the Particle
public applyForce ( Vector2 force ) : void
force Microsoft.Xna.Framework.Vector2 Force.
Résultat void

pin() public méthode

pins the Particle to its current position
public pin ( ) : Particle
Résultat Particle

pinTo() public méthode

pins the particle to the specified position
public pinTo ( Vector2 position ) : Particle
position Microsoft.Xna.Framework.Vector2 Position.
Résultat Particle

unpin() public méthode

unpins the particle setting it free like the wind
public unpin ( ) : Particle
Résultat Particle

Property Details

collidesWithColliders public_oe property

if true, the Particle will collide with standard Nez Colliders
public bool collidesWithColliders
Résultat bool

lastPosition public_oe property

the position of the Particle prior to its latest move
public Vector2,Microsoft.Xna.Framework lastPosition
Résultat Microsoft.Xna.Framework.Vector2

mass public_oe property

the mass of the Particle. Taken into account for all forces and constraints
public float mass
Résultat float

position public_oe property

the current position of the Particle
public Vector2,Microsoft.Xna.Framework position
Résultat Microsoft.Xna.Framework.Vector2

radius public_oe property

the radius of the Particle
public float radius
Résultat float