메소드 | 설명 | |
---|---|---|
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 |