Метод | Описание | |
---|---|---|
OnAdditionToSpace ( ISpace newSpace ) : void |
Called after the object is added to a space.
|
|
OnRemovalFromSpace ( ISpace oldSpace ) : void |
Called before an object is removed from its space.
|
Метод | Описание | |
---|---|---|
CalculateImpulse ( Entity e, float dt, Vector3 &impulse ) : void |
Calculates the impulse to apply to the entity.
|
|
ForceField ( BEPUphysics.UpdateableSystems.ForceFields.ForceFieldShape shape ) : System |
Constructs a force field.
|
|
PreUpdate ( ) : void |
Performs any custom logic desired prior to the force application.
|
Метод | Описание | |
---|---|---|
CalculateImpulsesSubfunction ( int index ) : void | ||
IDuringForcesUpdateable ( float dt ) : void |
Applies forces specified by the given calculation delegate to bodies in the volume. Called automatically when needed by the owning Space.
|
protected abstract CalculateImpulse ( Entity e, float dt, Vector3 &impulse ) : void | ||
e | Entity | Affected entity. |
dt | float | Duration between simulation updates. |
impulse | Vector3 | Impulse to apply to the entity. |
Результат | void |
protected ForceField ( BEPUphysics.UpdateableSystems.ForceFields.ForceFieldShape shape ) : System | ||
shape | BEPUphysics.UpdateableSystems.ForceFields.ForceFieldShape | Shape to use for the force field. |
Результат | System |
public OnAdditionToSpace ( ISpace newSpace ) : void | ||
newSpace | ISpace | Space to which the field has been added. |
Результат | void |
public OnRemovalFromSpace ( ISpace oldSpace ) : void | ||
oldSpace | ISpace | Space from which the object has been removed. |
Результат | void |