Inheritance: EventDispatcher → Object3D →
Visualizes the motion path of an animated object based on position keyframes from an AnimationClip.
const clip = model.animations[ 0 ];
const helper = new AnimationPathHelper( model, clip, object );
scene.add( helper );
AnimationPathHelper is an addon, and must be imported explicitly, see Installation#Addons.
import { AnimationPathHelper } from 'three/addons/helpers/AnimationPathHelper.js';
Constructs a new animation path helper.
root
The root object containing the animation clips.
clip
The animation clip containing position keyframes.
object
The specific object to show the path for.
options
Configuration options.
Default is {}.
color
The path line color.
Default is 0x00ff00.
markerColor
The keyframe marker color.
Default is 0xff0000.
divisions
Number of samples for smooth path interpolation.
Default is 100.
showMarkers
Whether to show markers at keyframe positions.
Default is true.
markerSize
Size of keyframe markers in pixels.
Default is 5.
The animation clip containing position keyframes.
Number of samples for smooth path interpolation.
Default is 100.
This flag can be used for type testing.
Default is true.
The line representing the animation path.
The object whose path is being visualized.
Points marking keyframe positions.
The root object containing the animation clips.
Frees the GPU-related resources allocated by this instance.
Sets the path line color.
color
The new color.
Sets the keyframe marker color.
color
The new color.
Updates the helper's transform to match the object's parent.
force
Force matrix update.
Overrides: Object3D#updateMatrixWorld