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

Constraint which attempts to restrict the relative angular velocity of two entities to some value. Can use a target relative orientation to apply additional force.
Наследование: 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.

SingleEntityAngularMotor ( ) : System

Constructs a new constraint which attempts to restrict the relative angular velocity of two entities to some value. This constructor will make the angular motor start with isActive set to false.

SingleEntityAngularMotor ( Entity entity ) : System

Constructs a new constraint which attempts to restrict the relative angular velocity of two entities to some value.

SolveIteration ( ) : float

Applies the corrective impulses required by the constraint.

Update ( float dt ) : void

Initializes the constraint for the current frame.

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

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

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

Constructs a new constraint which attempts to restrict the relative angular velocity of two entities to some value. This constructor will make the angular motor start with isActive set to false.
public SingleEntityAngularMotor ( ) : System
Результат System

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

Constructs a new constraint which attempts to restrict the relative angular velocity of two entities to some value.
public SingleEntityAngularMotor ( Entity entity ) : System
entity Entity Affected entity.
Результат System

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

Applies the corrective impulses required by the constraint.
public SolveIteration ( ) : float
Результат float

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

Initializes the constraint for the current frame.
public Update ( float dt ) : void
dt float Time between frames.
Результат void