Skip to main content

Module shape_preview

Module shape_preview 

Source
Expand description

Live re-resolution of a CharacterShape against a running world’s poses, for an editor previewing slider edits without a rebuild.

Structs§

ShapeTarget
The names a shape targeting one mesh can reference.

Functions§

apply
Re-seed every pose of shape.target through shape, and size the mesh’s rig capsule from capsule (the authored dimensions) through the new proportions. Returns whether a pose was found. The rig’s physics body is not resized here; the rebuild that follows a committed edit does that.
mesh_handle
The handle of the skinned mesh interned as name_id, if the running world loaded one under that name.
target
What the mesh behind handle exposes to a shape. None until the mesh has a pose in the world.