struct
RagdollComponent::PendingImpulse
Queued hit-reaction impulses. Gameplay code calls Ragdoll.ApplyImpulse / ApplyImpulseAtBone / EnablePhysics(impulse, point) and the request lands here. RagdollSystem drains the queue each tick AFTER making sure the ragdoll is materialized — so calling EnablePhysics(impulse, point) on an entity that doesn't have a live ragdoll yet still works: the ragdoll is built on the same tick and the impulse fires on the freshly-spawned body. boneIndex == -1 means "apply on the pelvis"; any other value targets that bone's body (resolved through mappings). hasPoint=false → at center-of- mass (fastest path, behaves like RigidBody.AddImpulse).
- Module
- Physics
- Header
#include "Physics/Components/RagdollComponent.h"- Namespace
Mowo
Properties
| Type | Name | Description |
|---|---|---|
int32_t | boneIndex | Default -1. |
Vec3 | impulse | Default Vec3(0.0f, 0.0f, 0.0f). |
Vec3 | worldPoint | Default Vec3(0.0f, 0.0f, 0.0f). |
bool | hasPoint | Default false. |
Generated from Physics/Components/RagdollComponent.h via physics.json · Nov 4, 2026Version 1.0.0