Свойство | Type | Description | |
---|---|---|---|
DecayCurve | Microsoft.Xna.Framework.Curve | ||
ForceType | ForceTypes | ||
StrengthCurve | Microsoft.Xna.Framework.Curve |
Свойство | Type | Description | |
---|---|---|---|
Randomize |
Méthode | Description | |
---|---|---|
AbstractForceController ( ) : System |
Constructor
|
|
AbstractForceController ( TimingModes mode ) : System |
Overloaded Contstructor with supplying Timing Mode
|
|
ApplyForce ( float dt, float strength ) : void |
Apply the force supplying strength (wich is modified in Update() according to the TimingMode
|
|
Trigger ( ) : void |
Triggers the trigger modes (Trigger and Curve)
|
|
Update ( float dt ) : void |
Inherited from Controller Depending on the TimingMode perform timing logic and call ApplyForce()
|
Méthode | Description | |
---|---|---|
GetDecayMultiplier ( |
Calculate the Decay for a given body. Meant to ease force development and stick to the DRY principle and provide unified and predictable decay math.
|
public AbstractForceController ( ) : System | ||
Résultat | System |
public AbstractForceController ( TimingModes mode ) : System | ||
mode | TimingModes | |
Résultat | System |
public abstract ApplyForce ( float dt, float strength ) : void | ||
dt | float | |
strength | float | The strength |
Résultat | void |
protected GetDecayMultiplier ( |
||
body | The body to calculate decay for | |
Résultat | float |
public Curve,Microsoft.Xna.Framework DecayCurve | ||
Résultat | Microsoft.Xna.Framework.Curve |