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

TypeNameDescription
static constexpr uint8_tkTranslateXDefault 1u << 0.
static constexpr uint8_tkTranslateYDefault 1u << 1.
static constexpr uint8_tkTranslateZDefault 1u << 2.
static constexpr uint8_tkRotateXDefault 1u << 3.
static constexpr uint8_tkRotateYDefault 1u << 4.
static constexpr uint8_tkRotateZDefault 1u << 5.
static constexpr uint8_tkAllDefault 0x3F.
static constexpr uint8_tkPlaneDefault kTranslateX | kTranslateY | kRotateZ.

Public functions

ReturnsNameDescription
uint8_tAllowedBits
boolNothingFree

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