C# Класс BEPUphysics.Paths.PathFollowing.EntityRotator

Pushes an entity around according to goal positions and orientations.
Наследование: BEPUphysics.UpdateableSystems.Updateable, IDuringForcesUpdateable
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
EntityRotator ( Entity e ) : System

Constructs a new EntityRotator.

EntityRotator ( Entity e, SingleEntityAngularMotor angularMotor ) : System

Constructs a new EntityRotator.

GetAngularVelocity ( Microsoft.Xna.Framework.Quaternion start, Microsoft.Xna.Framework.Quaternion end, float dt ) : Vector3

Gets the angular velocity necessary to change an entity's orientation from the starting quaternion to the ending quaternion over time dt.

OnAdditionToSpace ( ISpace newSpace ) : void

Adds the motors to the solver. Called automatically.

OnRemovalFromSpace ( ISpace oldSpace ) : void

Removes the motors from the solver. Called automatically.

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

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

Called automatically by the space.

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

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

Constructs a new EntityRotator.
public EntityRotator ( Entity e ) : System
e Entity Entity to move.
Результат System

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

Constructs a new EntityRotator.
public EntityRotator ( Entity e, SingleEntityAngularMotor angularMotor ) : System
e Entity Entity to move.
angularMotor BEPUphysics.Constraints.SingleEntity.SingleEntityAngularMotor Motor to use for angular motion if the entity is dynamic.
Результат System

GetAngularVelocity() публичный статический Метод

Gets the angular velocity necessary to change an entity's orientation from the starting quaternion to the ending quaternion over time dt.
public static GetAngularVelocity ( Microsoft.Xna.Framework.Quaternion start, Microsoft.Xna.Framework.Quaternion end, float dt ) : Vector3
start Microsoft.Xna.Framework.Quaternion Initial orientation.
end Microsoft.Xna.Framework.Quaternion Final orientation.
dt float Time over which the angular velocity is to be applied.
Результат Vector3

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

Adds the motors to the solver. Called automatically.
public OnAdditionToSpace ( ISpace newSpace ) : void
newSpace ISpace
Результат void

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

Removes the motors from the solver. Called automatically.
public OnRemovalFromSpace ( ISpace oldSpace ) : void
oldSpace ISpace
Результат void