class
FRigidBodyConstraints
Which of a dynamic body's six degrees of freedom stay free once the freeze toggles and Lock To XY Plane are applied. The bit layout is Physics' own: the solver converts it, and a mask of 0 is the case Jolt cannot represent (a dynamic body with nothing free crashes it), so the caller turns that body static instead.
- Module
- Physics
- Header
#include "Physics/RigidBodyConstraints.h"- Namespace
Mowo
Properties
| Type | Name | Description |
|---|---|---|
static constexpr uint8_t | kTranslateX | Default 1u << 0. |
static constexpr uint8_t | kTranslateY | Default 1u << 1. |
static constexpr uint8_t | kTranslateZ | Default 1u << 2. |
static constexpr uint8_t | kRotateX | Default 1u << 3. |
static constexpr uint8_t | kRotateY | Default 1u << 4. |
static constexpr uint8_t | kRotateZ | Default 1u << 5. |
static constexpr uint8_t | kAll | Default 0x3F. |
static constexpr uint8_t | kPlane | Default kTranslateX | kTranslateY | kRotateZ. |
Public functions
| Returns | Name | Description |
|---|---|---|
uint8_t | AllowedBits | |
bool | NothingFree |
Function details
AllowedBits
C++
static uint8_t AllowedBits(const RigidBodyComponent& body)NothingFree
C++
static bool NothingFree(uint8_t bits)Generated from Physics/RigidBodyConstraints.h via physics.json · Dec 5, 2026Version 1.1.0