The object whose property should be animated
The name of the property to animate. Must be a key of target whose value type is supported.
The target value the property should reach at the end of the animation.
Name given to the internally created animation group.
Use a stable, unique name per animated property so that concurrent calls can be
identified (e.g. "$parameterAnimation.position.MyNode").
Duration of the animation in milliseconds.
Removes transformation data from the mesh and stores it in the geometry, which is called "baking". Also considers the geometry change from morph targets and skeletons.
Optional settings: BakeGeometrySettingsOptionally avoid baking the transformation, as this only works conveniently if the parent structure is baked as well. Baking morph targets only is a use case when preparing a mesh for CSG operations, which doesn't consider morph targets (yet).
Finds all child nodes (TransformNodes, Meshes, but also Lights, Cameras, etc...) that match a given criteria.
Optional node: NodeIf left empty, all nodes of the scene are considered
Optional criteria: FindNodeCriteria<T>If left empty, all child nodes are returned
Finds nearest node that matches a given criteria.
Returns undefined if no node could be found.
Optional criteria: FindNodeCriteria<T>Get a TransformNode by name or create one if not already available.
Optionally set some settings of the existing or new TransformNode right away.
Optional settings: CreateTransformNodeSettingsGenerated using TypeDoc
Animates a single property of a target object from its current value to a given target value.
Supported property types are defined by AnimatableProperties (i.e.
number,Vector3,Color3).