프로퍼티 | 타입 | 설명 | |
---|---|---|---|
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 ( 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 |