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

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

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

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

Constructs a new EntityMover.

EntityMover ( Entity e, SingleEntityLinearMotor linearMotor ) : System

Constructs a new EntityMover.

GetLinearVelocity ( System.Vector3 start, System.Vector3 end, float dt ) : System.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 space. Called automatically.

OnRemovalFromSpace ( ISpace oldSpace ) : void

Removes the motors from the space. Called automatically.

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

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

Called automatically by the space.

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

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

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

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

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

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

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

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

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

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

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