C# 클래스 BEPUphysics.Vehicle.Vehicle

Simulates wheeled vehicles using a variety of constraints and shape casts.
상속: BEPUphysics.UpdateableSystems.CombinedUpdateable, IDuringForcesUpdateable, IBeforeNarrowPhaseUpdateable, IEndOfTimeStepUpdateable, IEndOfFrameUpdateable
파일 보기 프로젝트 열기: Indiefreaks/igf 1 사용 예제들

공개 메소드들

메소드 설명
AddWheel ( Wheel wheel ) : void

Adds a wheel to the vehicle.

ExclusiveUpdate ( ) : void

Performs any pre-solve iteration work that needs exclusive access to the members of the solver updateable. Usually, this is used for applying warmstarting impulses.

OnAdditionToSpace ( ISpace newSpace ) : void

Sets up the vehicle's information when being added to the space. Called automatically when the space adds the vehicle.

OnRemovalFromSpace ( ISpace oldSpace ) : void

Sets up the vehicle's information when being added to the space. Called automatically when the space adds the vehicle.

RemoveWheel ( Wheel wheel ) : void

Removes a wheel from the vehicle.

SolveIteration ( ) : float

Updates the vehicle. Called automatically when needed by the owning Space.

Update ( float dt ) : void

Computes information required during the later update. Called once before the iteration loop.

UpdateSolverActivity ( ) : void

Updates the activity state of the wheel constraints.

Vehicle ( Entity shape ) : System

Constructs a vehicle.

Vehicle ( Entity shape, IEnumerable wheelList ) : System

Constructs a vehicle.

보호된 메소드들

메소드 설명
CollectInvolvedEntities ( RawList outputInvolvedEntities ) : void

Adds entities associated with the solver item to the involved entities list. Ensure that sortInvolvedEntities() is called at the end of the function. This allows the non-batched multithreading system to lock properly.

비공개 메소드들

메소드 설명
IBeforeNarrowPhaseUpdateable ( float dt ) : void
IDuringForcesUpdateable ( float dt ) : void
IEndOfFrameUpdateable ( float dt ) : void

Performs the end-of-frame update component.

IEndOfTimeStepUpdateable ( float dt ) : void

Performs the end-of-update update component.

메소드 상세

AddWheel() 공개 메소드

Adds a wheel to the vehicle.
public AddWheel ( Wheel wheel ) : void
wheel Wheel WheelTest to add.
리턴 void

CollectInvolvedEntities() 보호된 메소드

Adds entities associated with the solver item to the involved entities list. Ensure that sortInvolvedEntities() is called at the end of the function. This allows the non-batched multithreading system to lock properly.
protected CollectInvolvedEntities ( RawList outputInvolvedEntities ) : void
outputInvolvedEntities RawList
리턴 void

ExclusiveUpdate() 공개 메소드

Performs any pre-solve iteration work that needs exclusive access to the members of the solver updateable. Usually, this is used for applying warmstarting impulses.
public ExclusiveUpdate ( ) : void
리턴 void

OnAdditionToSpace() 공개 메소드

Sets up the vehicle's information when being added to the space. Called automatically when the space adds the vehicle.
public OnAdditionToSpace ( ISpace newSpace ) : void
newSpace ISpace New owning space.
리턴 void

OnRemovalFromSpace() 공개 메소드

Sets up the vehicle's information when being added to the space. Called automatically when the space adds the vehicle.
public OnRemovalFromSpace ( ISpace oldSpace ) : void
oldSpace ISpace
리턴 void

RemoveWheel() 공개 메소드

Removes a wheel from the vehicle.
public RemoveWheel ( Wheel wheel ) : void
wheel Wheel WheelTest to remove.
리턴 void

SolveIteration() 공개 메소드

Updates the vehicle. Called automatically when needed by the owning Space.
public SolveIteration ( ) : float
리턴 float

Update() 공개 메소드

Computes information required during the later update. Called once before the iteration loop.
public Update ( float dt ) : void
dt float Time since previous frame in simulation seconds.
리턴 void

UpdateSolverActivity() 공개 메소드

Updates the activity state of the wheel constraints.
public UpdateSolverActivity ( ) : void
리턴 void

Vehicle() 공개 메소드

Constructs a vehicle.
public Vehicle ( Entity shape ) : System
shape Entity Body of the vehicle.
리턴 System

Vehicle() 공개 메소드

Constructs a vehicle.
public Vehicle ( Entity shape, IEnumerable wheelList ) : System
shape Entity Body of the vehicle.
wheelList IEnumerable List of wheels of the vehicle.
리턴 System