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

Constraint which tries to push an entity to a desired location.
Наследование: SingleEntityConstraint, I3DImpulseConstraintWithError
Показать файл Открыть проект Примеры использования класса

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

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

SingleEntityLinearMotor ( ) : System

Constructs a new single body linear motor. This motor will try to move a single entity to a goal velocity or to a goal position. This constructor will start the motor with isActive = false.

SingleEntityLinearMotor ( Entity entity, Vector3 point ) : System

Constructs a new single body linear motor. This motor will try to move a single entity to a goal velocity or to a goal position.

SolveIteration ( ) : float

Computes one iteration of the constraint to meet the solver updateable's goal.

Update ( float dt ) : void

Performs the frame's configuration step.

Приватные методы

Метод Описание
ComputeMaxForces ( float maxForce, float dt ) : void

Computes the maxForceDt and maxForceDtSquared fields.

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

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

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

Constructs a new single body linear motor. This motor will try to move a single entity to a goal velocity or to a goal position. This constructor will start the motor with isActive = false.
public SingleEntityLinearMotor ( ) : System
Результат System

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

Constructs a new single body linear motor. This motor will try to move a single entity to a goal velocity or to a goal position.
public SingleEntityLinearMotor ( Entity entity, Vector3 point ) : System
entity Entity Entity to affect.
point Vector3 Point in world space attached to the entity that will be motorized.
Результат System

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

Computes one iteration of the constraint to meet the solver updateable's goal.
public SolveIteration ( ) : float
Результат float

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

Performs the frame's configuration step.
public Update ( float dt ) : void
dt float Timestep duration.
Результат void