Constructors
Methods
build
Parameters
Optionalroot: Object3D<Object3DEventMap>
track
track( target: Object3D, property: "position" | "scale", keyframes: KF<Vec3Value>, options?: TrackOptions,): this Parameters
- target: Object3D
- property: "position" | "scale"
- keyframes: KF<Vec3Value>
Optionaloptions: TrackOptions
Returns this
track( target: Object3D, property: "quaternion", keyframes: KF<QuatValue>, options?: TrackOptions,): this Parameters
- target: Object3D
- property: "quaternion"
- keyframes: KF<QuatValue>
Optionaloptions: TrackOptions
Returns this
track( target: Object3D, property: "rotation", keyframes: KF<EulerValue>, options?: TrackOptions,): this Parameters
- target: Object3D
- property: "rotation"
- keyframes: KF<EulerValue>
Optionaloptions: TrackOptions
Returns this
track( target: Object3D, property: "visible", keyframes: KF<boolean>, options?: TrackOptions,): this Parameters
- target: Object3D
- property: "visible"
- keyframes: KF<boolean>
Optionaloptions: TrackOptions
Returns this
track( target: Material, property: | "opacity" | "roughness" | "metalness" | "alphaTest" | "emissiveIntensity" | "envMapIntensity" | "bumpScale" | "displacementScale" | "displacementBias", keyframes: KF<number>, options?: TrackOptions,): this Parameters
- target: Material
- property:
| "opacity"
| "roughness"
| "metalness"
| "alphaTest"
| "emissiveIntensity"
| "envMapIntensity"
| "bumpScale"
| "displacementScale"
| "displacementBias" - keyframes: KF<number>
Optionaloptions: TrackOptions
Returns this
track( target: Material, property: "color" | "emissive", keyframes: KF<ColorValue>, options?: TrackOptions,): this Parameters
- target: Material
- property: "color" | "emissive"
- keyframes: KF<ColorValue>
Optionaloptions: TrackOptions
Returns this
track( target: Light, property: "intensity" | "distance" | "angle" | "penumbra" | "decay", keyframes: KF<number>, options?: TrackOptions,): this Parameters
- target: Light
- property: "intensity" | "distance" | "angle" | "penumbra" | "decay"
- keyframes: KF<number>
Optionaloptions: TrackOptions
Returns this
track( target: Light, property: "color", keyframes: KF<ColorValue>, options?: TrackOptions,): this Parameters
- target: Light
- property: "color"
- keyframes: KF<ColorValue>
Optionaloptions: TrackOptions
Returns this
track( target: PerspectiveCamera, property: "zoom" | "fov" | "near" | "far", keyframes: KF<number>, options?: TrackOptions,): this Parameters
- target: PerspectiveCamera
- property: "zoom" | "fov" | "near" | "far"
- keyframes: KF<number>
Optionaloptions: TrackOptions
Returns this
A fluent builder for creating
AnimationClipinstances from code.Use AnimationBuilder.create to start a new builder, chain
.track()calls to add animation tracks, and call.build()to produce the clip.Example: Single track
Example: Multiple tracks