C# Class BEPUphysics.Constraints.SolverGroups.RevoluteJoint

Restricts linear motion while allowing one degree of angular freedom. Acts like a normal door hinge.
Inheritance: SolverGroup
Datei anzeigen Open project: Indiefreaks/igf Class Usage Examples

Public Methods

Method Description
RevoluteJoint ( ) : BEPUphysics.Constraints.TwoEntity

Constructs a new constraint which restricts three degrees of linear freedom and two degrees of angular freedom between two entities. This constructs the internal constraints, but does not configure them. Before using a constraint constructed in this manner, ensure that its active constituent constraints are properly configured. The entire group as well as all internal constraints are initially inactive (IsActive = false).

RevoluteJoint ( Entity connectionA, Entity connectionB, Vector3 anchor, Vector3 freeAxis ) : BEPUphysics.Constraints.TwoEntity

Constructs a new constraint which restricts three degrees of linear freedom and two degrees of angular freedom between two entities.

Method Details

RevoluteJoint() public method

Constructs a new constraint which restricts three degrees of linear freedom and two degrees of angular freedom between two entities. This constructs the internal constraints, but does not configure them. Before using a constraint constructed in this manner, ensure that its active constituent constraints are properly configured. The entire group as well as all internal constraints are initially inactive (IsActive = false).
public RevoluteJoint ( ) : BEPUphysics.Constraints.TwoEntity
return BEPUphysics.Constraints.TwoEntity

RevoluteJoint() public method

Constructs a new constraint which restricts three degrees of linear freedom and two degrees of angular freedom between two entities.
public RevoluteJoint ( Entity connectionA, Entity connectionB, Vector3 anchor, Vector3 freeAxis ) : BEPUphysics.Constraints.TwoEntity
connectionA BEPUphysics.Entities.Entity First entity of the constraint pair.
connectionB BEPUphysics.Entities.Entity Second entity of the constraint pair.
anchor Vector3 Point around which both entities rotate.
freeAxis Vector3 Axis around which the hinge can rotate.
return BEPUphysics.Constraints.TwoEntity