Creates a new VRM Spring Bone instance.
The scene graph entity node to attach this spring bone to
Collection of tags associated with this object
The bone axis direction in local space coordinates
The length of the bone in world space units
Current tail position in world space coordinates
The drag force that dampens the bone movement
The direction vector of gravity force
The power of gravity affecting the bone movement
The radius used for collision detection
The initial local position of the child bone
Flag indicating whether the spring bone has been initialized
The scene graph entity node that this spring bone is attached to
Previous tail position in world space coordinates
The stiffness force that controls how quickly the bone returns to its rest position
Static
Readonly
InvalidInvalid object UID constant
Static
currentCurrent maximum object count for UID generation
Gets the unique object identifier
The object's UID
Gets the unique name of this object
The unique name string
Internal
Copies tag data from another RnObject instance to this object
The source RnObject to copy tags from
Gets the transformation matrix from center space to world space.
Optional
center: SceneGraphComponentOptional center component for coordinate transformation
The transformation matrix from center to world space
Gets the transformation matrix from world space to center space.
Optional
center: SceneGraphComponentOptional center component for coordinate transformation
The transformation matrix from world to center space
Checks if this object has all the specified tags with exactly matching values
Object containing tag names as keys and expected values
True if all specified tags exist with matching values, false otherwise
Checks if the object's combined tag string contains all the provided search strings. This allows for flexible searching within tag names and values.
Array of strings that must all be present in the combined tag string
True if all strings are found in the combined tag string, false otherwise
Initializes the spring bone with default values and calculates initial positions. This method should be called once before starting the physics simulation.
Optional
center: SceneGraphComponentOptional center component for coordinate transformation
Attempts to set a tag on this object. If the tag already exists, it will be replaced.
The tag object containing the name and value to set
True if the tag was successfully set, false if the tag name contains invalid characters
Attempts to set a unique name for this object
The desired unique name
If true, appends UID to make name unique when conflicts occur; if false, fails on conflict
True if the name was successfully set, false if there was a conflict and toAddNameIfConflict was false
Static
_resetStatic
getStatic
getStatic
searchSearches for the first object that has a specific tag with the given value
The tag name to search for
The tag value to match
WeakRef to the first matching object, or undefined if not found
VRM Spring Bone implementation for physics-based bone animation. This class handles the physics simulation of spring bones commonly used in VRM models for secondary animation like hair, clothes, and accessories.