Метод | Описание | |
---|---|---|
AddWheel ( |
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 ( |
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 |
Constructs a vehicle.
|
Метод | Описание | |
---|---|---|
CollectInvolvedEntities ( RawList |
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.
|
public AddWheel ( |
||
wheel | WheelTest to add. | |
Результат | void |
protected CollectInvolvedEntities ( RawList |
||
outputInvolvedEntities | RawList |
|
Результат | void |
public OnAdditionToSpace ( ISpace newSpace ) : void | ||
newSpace | ISpace | New owning space. |
Результат | void |
public OnRemovalFromSpace ( ISpace oldSpace ) : void | ||
oldSpace | ISpace | |
Результат | void |
public RemoveWheel ( |
||
wheel | WheelTest to remove. | |
Результат | void |
public Update ( float dt ) : void | ||
dt | float | Time since previous frame in simulation seconds. |
Результат | void |
public Vehicle ( Entity shape ) : System | ||
shape | Entity | Body of the vehicle. |
Результат | System |
public Vehicle ( Entity shape, IEnumerable |
||
shape | Entity | Body of the vehicle. |
wheelList | IEnumerable |
List of wheels of the vehicle. |
Результат | System |