Optional
params: { inside?: boolean; offset?: Vector3; radius?: number; tail?: Vector3 }If true, the collider prevents spring bones from going outside of the capsule instead.
The offset of the capsule head from the origin in local space.
The radius of the capsule.
The offset of the capsule tail from the origin in local space.
Calculate a distance and a direction from the collider to a target object. It's hit if the distance is negative. The direction will be contained in the given target vector.
A matrix represents the transform of the collider
A vector represents the position of the target object
The radius of the object
The result direction will be contained in this vector
Represents a shape of a collider.