C# Class BEPUphysics.Constraints.SingleEntity.SingleEntityLinearMotor

Constraint which tries to push an entity to a desired location.
Inheritance: SingleEntityConstraint, I3DImpulseConstraintWithError
Afficher le fichier Open project: Indiefreaks/igf Class Usage Examples

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
ComputeMaxForces ( float maxForce, float dt ) : void

Computes the maxForceDt and maxForceDtSquared fields.

Method Details

ExclusiveUpdate() public méthode

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
Résultat void

SingleEntityLinearMotor() public méthode

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
Résultat System

SingleEntityLinearMotor() public méthode

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.
Résultat System

SolveIteration() public méthode

Computes one iteration of the constraint to meet the solver updateable's goal.
public SolveIteration ( ) : float
Résultat float

Update() public méthode

Performs the frame's configuration step.
public Update ( float dt ) : void
dt float Timestep duration.
Résultat void