C# Class Nez.Verlet.AngleConstraint

constrains 3 particles to an angle
Inheritance: Constraint
Show file Open project: prime31/Nez

Public Properties

Property Type Description
angleInRadians float
stiffness float

Public Methods

Method Description
AngleConstraint ( Particle a, Particle center, Particle c, float stiffness ) : Microsoft.Xna.Framework
solve ( ) : void

Private Methods

Method Description
angleBetweenParticles ( ) : float

Method Details

AngleConstraint() public method

public AngleConstraint ( Particle a, Particle center, Particle c, float stiffness ) : Microsoft.Xna.Framework
a Particle
center Particle
c Particle
stiffness float
return Microsoft.Xna.Framework

solve() public method

public solve ( ) : void
return void

Property Details

angleInRadians public property

the angle in radians that the Constraint will attempt to maintain
public float angleInRadians
return float

stiffness public property

[0-1]. the stiffness of the Constraint. Lower values are more springy and higher are more rigid.
public float stiffness
return float