RootMotionSampler¶
from acron.anim import RootMotionSampler
- class RootMotionSampler(actor, root_joint: str = 'root', detach: bool = True)¶
Bases:
objectDrives an Actor’s clips and reports the root motion they carry.
Constructing one detaches the root track from the pose (
detach_root_motion()), which is what makes the clips in-place: all travel then comes from the caller moving the body, exactly as Godot’s root-motion track works. Passdetach=Falsefor a rig whose root channel is the pose (a prop, a camera clip) rather than a motion track.Inheritance diagram
digraph inheritanceca53028607 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "RootMotionSampler" [URL="acron.anim.RootMotionSampler.html#acron.anim.RootMotionSampler",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="Drives an Actor's clips and reports the root motion they carry."]; }