C# Class BEPUphysics.Constraints.SingleEntity.SingleEntityLinearMotor

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

Public Methods

Method 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

Method Description
ComputeMaxForces ( float maxForce, float dt ) : void

Computes the maxForceDt and maxForceDtSquared fields.

Method Details

ExclusiveUpdate() public method

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
return void

SingleEntityLinearMotor() public method

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
return System

SingleEntityLinearMotor() public method

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.
return System

SolveIteration() public method

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

Update() public method

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