NcEngine
nc::DegreeOfFreedom Struct Reference

Flags indicating allowed degrees of freedom of a RigidBody. More...

#include <RigidBody.h>

Public Types

using Type = uint8_t
 

Static Public Attributes

static constexpr Type All = 0b00111111
 
static constexpr Type TranslationX = 0b00000001
 
static constexpr Type TranslationY = 0b00000010
 
static constexpr Type TranslationZ = 0b00000100
 
static constexpr Type Translation = 0b00000111
 
static constexpr Type RotationX = 0b00001000
 
static constexpr Type RotationY = 0b00010000
 
static constexpr Type RotationZ = 0b00100000
 
static constexpr Type Rotation = 0b00111000
 

Detailed Description

Flags indicating allowed degrees of freedom of a RigidBody.

Note
To restrict all motion, use BodyType::Static instead.

The documentation for this struct was generated from the following file: