4#include "resource/asset/skeleton_asset.h"
72void clearRagdoll(Scene& scene, EntityId rigEntity);
Central registry managing entities and an open set of component types.
Definition scene.h:29
Names one entity of one Scene, for as long as that slot holds it.
Definition entity.h:23
How a ragdoll is proportioned and weighted.
Definition ragdoll_build.h:13
float stiffness
Passed to every joint the build makes.
Definition ragdoll_build.h:25
int boneLayer
Collision layer the bones are put on, as a single bit.
Definition ragdoll_build.h:42
float minBoneLength
Shortest bone that gets a body of its own, in metres; a shorter one follows its parent.
Definition ragdoll_build.h:22
float mass
Total mass, shared out by limb volume.
Definition ragdoll_build.h:24
float muscle
How much of the body's shape it keeps once limp, 0 to 1.
Definition ragdoll_build.h:33
float thickness
Bone radius as a fraction of its length; a rig carries no thickness of its own.
Definition ragdoll_build.h:17
A rig: a flat, parent-before-child bone array plus its bind pose.
Definition skeleton_asset.h:33