C# 클래스 BEPUphysics.UpdateableSystems.ForceFields.ForceField

Superclass of objects which apply forces to entities in some field.
상속: Updateable, IDuringForcesUpdateable
파일 보기 프로젝트 열기: Indiefreaks/igf

공개 메소드들

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

메소드 상세

CalculateImpulse() 보호된 추상적인 메소드

Calculates the impulse to apply to the entity.
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

ForceField() 보호된 메소드

Constructs a force field.
protected ForceField ( BEPUphysics.UpdateableSystems.ForceFields.ForceFieldShape shape ) : System
shape BEPUphysics.UpdateableSystems.ForceFields.ForceFieldShape Shape to use for the force field.
리턴 System

OnAdditionToSpace() 공개 메소드

Called after the object is added to a space.
public OnAdditionToSpace ( ISpace newSpace ) : void
newSpace ISpace Space to which the field has been added.
리턴 void

OnRemovalFromSpace() 공개 메소드

Called before an object is removed from its space.
public OnRemovalFromSpace ( ISpace oldSpace ) : void
oldSpace ISpace Space from which the object has been removed.
리턴 void

PreUpdate() 보호된 메소드

Performs any custom logic desired prior to the force application.
protected PreUpdate ( ) : void
리턴 void