struct

RigidBodyComponent

Module
Physics
Header
#include "Physics/Components/RigidBodyComponent.h"
Namespace
Mowo
Reflection
Reflected by MowoHeaderTool

Properties

TypeNameDescription
static constexpr floatkDefaultFrictionDefault 0.5f.
static constexpr floatkDefaultRestitutionDefault 0.2f.
boolenabledDefault true.
BodyTypetypeDefault BodyType::Dynamic.
floatmassDefault 1.0f.
floatfrictionPrecedence at body creation: the collider's PhysicsMaterial supplies friction/restitution; a value here moved off its default overrides it. Default kDefaultFriction.
floatrestitutionDefault kDefaultRestitution.
floatlinearDampingDefault 0.05f.
floatangularDampingDefault 0.05f.
booluseGravityDefault true.
booluseCCDDefault false.
floatgravityScaleMultiplies world gravity for this body (Unity has no equivalent, UE calls it Gravity Scale). Zero floats, negative rises, and Use Gravity off wins over any value here. Changing it on a live body goes through FPhysicsBodyTuning::SetGravityScale. Default 1.0f.
floatmaxLinearVelocitySpeed caps the solver clamps the body to each step. The defaults are Jolt's own (500 m/s and 15 turns a second); lower the linear one on a light fast prop so it cannot cross a thin wall in a single fixed step. Default 500.0f.
floatmaxAngularVelocityDefault 47.1238899f.
floatinertiaScaleScales the inertia Jolt derives from the shape: above one the body resists spinning, below one it spins up easily. It does not touch mass. Default 1.0f.
Vec3centerOfMassOffsetMoves the centre of mass away from the shape's own, in the body's local space: a low offset makes a bottle self-right, a high one makes a top-heavy crate tip. Read when the body is created. Default Vec3(0.0f, 0.0f, 0.0f).
boolallowSleepingA body that may not sleep keeps costing a solve every step, which is what a motor-driven part or a scripted pusher wants. Default true.
boolstartAsleepPlace the body asleep so a level of settled props costs nothing until something touches them. Default false.
boolapplyGyroscopicForceGyroscopic precession for fast spinners (a thrown axe, a wheel); off by default because it makes ordinary tumbling slightly less damped. Default false.
uint8_tlayerObjectLayers::Dynamic Default 1.
boolfreezePositionXFreeze constraints (like Unity Rigidbody constraints) Default false.
boolfreezePositionYDefault false.
boolfreezePositionZDefault false.
boolfreezeRotationXDefault false.
boolfreezeRotationYDefault false.
boolfreezeRotationZDefault false.
FPhysicsBodyIdbodyIDRuntime state (managed by PhysicsSystem)
boolinitializedDefault false.
boolwasEnabledDefault true.
Generated from Physics/Components/RigidBodyComponent.h via physics.json · Nov 4, 2026Version 1.0.0