Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
Constraint.h File Reference

Go to the source code of this file.

Classes

class  ConstraintSettings
 Class used to store the configuration of a constraint. Allows run-time creation of constraints. More...
 
class  Constraint
 Base class for all physics constraints. A constraint removes one or more degrees of freedom for a rigid body. More...
 

Enumerations

enum class  EConstraintType { Constraint , TwoBodyConstraint }
 Enum to identify constraint type. More...
 
enum class  EConstraintSubType {
  Fixed , Point , Hinge , Slider ,
  Distance , Cone , SwingTwist , SixDOF ,
  Path , Vehicle , RackAndPinion , Gear ,
  Pulley , User1 , User2 , User3 ,
  User4
}
 Enum to identify constraint sub type. More...
 
enum class  EConstraintSpace { LocalToBodyCOM , WorldSpace }
 Certain constraints support setting them up in local or world space. This governs what is used. More...
 

Enumeration Type Documentation

◆ EConstraintSpace

enum class EConstraintSpace
strong

Certain constraints support setting them up in local or world space. This governs what is used.

Enumerator
LocalToBodyCOM 

All constraint properties are specified in local space to center of mass of the bodies that are being constrained (so e.g. 'constraint position 1' will be local to body 1 COM, 'constraint position 2' will be local to body 2 COM). Note that this means you need to subtract Shape::GetCenterOfMass() from positions!

WorldSpace 

All constraint properties are specified in world space.

◆ EConstraintSubType

enum class EConstraintSubType
strong

Enum to identify constraint sub type.

Enumerator
Fixed 
Point 
Hinge 
Slider 
Distance 
Cone 
SwingTwist 
SixDOF 
Path 
Vehicle 
RackAndPinion 
Gear 
Pulley 
User1 

User defined constraint types start here.

User2 
User3 
User4 

◆ EConstraintType

enum class EConstraintType
strong

Enum to identify constraint type.

Enumerator
Constraint 
TwoBodyConstraint