C# Class 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.
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.

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.

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

SingleEntityAngularMotor() public méthode

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

SingleEntityAngularMotor() public méthode

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

SolveIteration() public méthode

Applies the corrective impulses required by the constraint.
public SolveIteration ( ) : float
Résultat float

Update() public méthode

Initializes the constraint for the current frame.
public Update ( float dt ) : void
dt float Time between frames.
Résultat void