Свойство | Тип | Описание | |
---|---|---|---|
DecayCurve | Microsoft.Xna.Framework.Curve | ||
ForceType | ForceTypes | ||
StrengthCurve | Microsoft.Xna.Framework.Curve |
Свойство | Тип | Описание | |
---|---|---|---|
Randomize |
Метод | Описание | |
---|---|---|
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()
|
Метод | Описание | |
---|---|---|
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 | ||
Результат | System |
public AbstractForceController ( TimingModes mode ) : System | ||
mode | TimingModes | |
Результат | System |
public abstract ApplyForce ( float dt, float strength ) : void | ||
dt | float | |
strength | float | The strength |
Результат | void |
protected GetDecayMultiplier ( |
||
body | The body to calculate decay for | |
Результат | float |
public Curve,Microsoft.Xna.Framework DecayCurve | ||
Результат | Microsoft.Xna.Framework.Curve |