Dynamic Velocity Bone
Updated
One bone softly follows its parent: hair, ears.
- Type
comp-dynamic-velocity-bone- Script class
DynamicVelocityBoneComponent- Per entity
- Several
- Version
- 2.0.0
Read about it in Dynamic bones: what it does, how to use it from a script, and examples.
Properties
Section titled “Properties”The props the runtime declares for this component, with their defaults and accepted ranges.
| Prop | Default | Range |
|---|---|---|
velocity |
0.01 ≤ x ≤ 10 |
Live example
Section titled “Live example”Run it in the browser, read its scripts, and download it as an XR Creator project.
Live example
A balloon dog with spring ears and a wagging tailA balloon dog hops on an Animation Timeline while Dynamic Spring Bones bounce its ears and Dynamic Velocity Bones swing its tail behind the motion.
Watch the ears bounce and the tail trail behind each hop. Drag to orbit the camera, scroll to zoom.
From a script
Section titled “From a script”#pragma lifecycle(startup)
function startup() { const component = self.parent.getComponent(DynamicVelocityBoneComponent); if (component) log(component.props);}