Gets the gizmo used to visualize this collider.
The gizmo instance, or undefined if not set
Sets the gizmo used to visualize this collider.
The gizmo instance to set
Gets whether the gizmo is currently visible.
True if the gizmo exists and is visible
Gets the radius of the capsule.
The radius value
Calculates collision information between this capsule collider and a spherical bone.
The world position of the bone
The radius of the bone sphere
An object containing the collision direction vector and penetration distance. If distance is negative, the bone is penetrating the capsule. The direction points from the capsule surface towards the bone center.
Destroys the gizmo if it exists.
Sets the visibility of the collider's gizmo. If the gizmo exists, it will be shown or hidden accordingly.
Whether the gizmo should be visible
Updates cached world positions for the capsule. Should be called once per frame before collision checks.
A capsule-shaped collider used for VRM spring bone physics simulation. The capsule is defined by a position (head), tail position, and radius. It can detect collisions with spherical objects like bones.