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

Go to the source code of this file.

Enumerations

enum class  EAllowedDOFs : uint8 {
  None = 0b000000 , All = 0b111111 , TranslationX = 0b000001 , TranslationY = 0b000010 ,
  TranslationZ = 0b000100 , RotationX = 0b001000 , RotationY = 0b010000 , RotationZ = 0b100000 ,
  Plane2D = TranslationX | TranslationY | RotationZ
}
 Enum used in BodyCreationSettings and MotionProperties to indicate which degrees of freedom a body has. More...
 

Functions

constexpr EAllowedDOFs operator| (EAllowedDOFs inLHS, EAllowedDOFs inRHS)
 Bitwise OR operator for EAllowedDOFs.
 
constexpr EAllowedDOFs operator& (EAllowedDOFs inLHS, EAllowedDOFs inRHS)
 Bitwise AND operator for EAllowedDOFs.
 
constexpr EAllowedDOFs operator^ (EAllowedDOFs inLHS, EAllowedDOFs inRHS)
 Bitwise XOR operator for EAllowedDOFs.
 
constexpr EAllowedDOFs operator~ (EAllowedDOFs inAllowedDOFs)
 Bitwise NOT operator for EAllowedDOFs.
 
constexpr EAllowedDOFsoperator|= (EAllowedDOFs &ioLHS, EAllowedDOFs inRHS)
 Bitwise OR assignment operator for EAllowedDOFs.
 
constexpr EAllowedDOFsoperator&= (EAllowedDOFs &ioLHS, EAllowedDOFs inRHS)
 Bitwise AND assignment operator for EAllowedDOFs.
 
constexpr EAllowedDOFsoperator^= (EAllowedDOFs &ioLHS, EAllowedDOFs inRHS)
 Bitwise XOR assignment operator for EAllowedDOFs.
 

Enumeration Type Documentation

◆ EAllowedDOFs

enum class EAllowedDOFs : uint8
strong

Enum used in BodyCreationSettings and MotionProperties to indicate which degrees of freedom a body has.

Enumerator
None 

No degrees of freedom are allowed. Note that this is not valid and will crash. Use a static body instead.

All 

All degrees of freedom are allowed.

TranslationX 

Body can move in world space X axis.

TranslationY 

Body can move in world space Y axis.

TranslationZ 

Body can move in world space Z axis.

RotationX 

Body can rotate around world space X axis.

RotationY 

Body can rotate around world space Y axis.

RotationZ 

Body can rotate around world space Z axis.

Plane2D 

Body can only move in X and Y axis and rotate around Z axis.

Function Documentation

◆ operator&()

constexpr EAllowedDOFs operator& ( EAllowedDOFs  inLHS,
EAllowedDOFs  inRHS 
)
constexpr

Bitwise AND operator for EAllowedDOFs.

◆ operator&=()

constexpr EAllowedDOFs & operator&= ( EAllowedDOFs ioLHS,
EAllowedDOFs  inRHS 
)
constexpr

Bitwise AND assignment operator for EAllowedDOFs.

◆ operator^()

constexpr EAllowedDOFs operator^ ( EAllowedDOFs  inLHS,
EAllowedDOFs  inRHS 
)
constexpr

Bitwise XOR operator for EAllowedDOFs.

◆ operator^=()

constexpr EAllowedDOFs & operator^= ( EAllowedDOFs ioLHS,
EAllowedDOFs  inRHS 
)
constexpr

Bitwise XOR assignment operator for EAllowedDOFs.

◆ operator|()

constexpr EAllowedDOFs operator| ( EAllowedDOFs  inLHS,
EAllowedDOFs  inRHS 
)
constexpr

Bitwise OR operator for EAllowedDOFs.

◆ operator|=()

constexpr EAllowedDOFs & operator|= ( EAllowedDOFs ioLHS,
EAllowedDOFs  inRHS 
)
constexpr

Bitwise OR assignment operator for EAllowedDOFs.

◆ operator~()

constexpr EAllowedDOFs operator~ ( EAllowedDOFs  inAllowedDOFs)
constexpr

Bitwise NOT operator for EAllowedDOFs.