struct
RigidBodyComponent
- Module
- Physics
- Header
#include "Physics/Components/RigidBodyComponent.h"- Namespace
Mowo- Reflection
- Reflected by MowoHeaderTool
Properties
| Type | Name | Description |
|---|---|---|
static constexpr float | kDefaultFriction | Default 0.5f. |
static constexpr float | kDefaultRestitution | Default 0.2f. |
bool | enabled | Default true. |
BodyType | type | Default BodyType::Dynamic. |
float | mass | Default 1.0f. |
float | friction | Precedence at body creation: the collider's PhysicsMaterial supplies friction/restitution; a value here moved off its default overrides it. Default kDefaultFriction. |
float | restitution | Default kDefaultRestitution. |
float | linearDamping | Default 0.05f. |
float | angularDamping | Default 0.05f. |
bool | useGravity | Default true. |
bool | useCCD | Default false. |
float | gravityScale | Multiplies 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. |
float | maxLinearVelocity | Speed 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. |
float | maxAngularVelocity | Default 47.1238899f. |
float | inertiaScale | Scales 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. |
Vec3 | centerOfMassOffset | Moves 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). |
bool | allowSleeping | A 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. |
bool | startAsleep | Place the body asleep so a level of settled props costs nothing until something touches them. Default false. |
bool | applyGyroscopicForce | Gyroscopic precession for fast spinners (a thrown axe, a wheel); off by default because it makes ordinary tumbling slightly less damped. Default false. |
uint8_t | layer | ObjectLayers::Dynamic Default 1. |
bool | freezePositionX | Freeze constraints (like Unity Rigidbody constraints) Default false. |
bool | freezePositionY | Default false. |
bool | freezePositionZ | Default false. |
bool | freezeRotationX | Default false. |
bool | freezeRotationY | Default false. |
bool | freezeRotationZ | Default false. |
FPhysicsBodyId | bodyID | Runtime state (managed by PhysicsSystem) |
bool | initialized | Default false. |
bool | wasEnabled | Default true. |
Generated from Physics/Components/RigidBodyComponent.h via physics.json · Nov 4, 2026Version 1.0.0