C# Класс BEPUphysics.Constraints.SingleEntity.MaximumLinearSpeedConstraint

Prevents the target entity from moving faster than the specified speeds.
Наследование: SingleEntityConstraint, I3DImpulseConstraint
Показать файл Открыть проект

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
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.

MaximumLinearSpeedConstraint ( ) : System

Constructs a maximum speed constraint. Set its Entity and MaximumSpeed to complete the configuration. IsActive also starts as false with this constructor.

MaximumLinearSpeedConstraint ( Entity e, float maxSpeed ) : System

Constructs a maximum speed constraint.

SolveIteration ( ) : float

Calculates and applies corrective impulses. Called automatically by space.

Update ( float dt ) : void

Calculates necessary information for velocity solving. Called automatically by space.

Описание методов

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

MaximumLinearSpeedConstraint() публичный Метод

Constructs a maximum speed constraint. Set its Entity and MaximumSpeed to complete the configuration. IsActive also starts as false with this constructor.
public MaximumLinearSpeedConstraint ( ) : System
Результат System

MaximumLinearSpeedConstraint() публичный Метод

Constructs a maximum speed constraint.
public MaximumLinearSpeedConstraint ( Entity e, float maxSpeed ) : System
e Entity Affected entity.
maxSpeed float Maximum linear speed allowed.
Результат System

SolveIteration() публичный Метод

Calculates and applies corrective impulses. Called automatically by space.
public SolveIteration ( ) : float
Результат float

Update() публичный Метод

Calculates necessary information for velocity solving. Called automatically by space.
public Update ( float dt ) : void
dt float Time in seconds since the last update.
Результат void