World:newCapsuleCollider

Edit

Adds a new Collider to the World with a CapsuleShape already attached.



Arguments

NameTypeDefaultDescription
xnumber0 The x coordinate of the center of the capsule, in meters.
ynumber0 The y coordinate of the center of the capsule, in meters.
znumber0 The z coordinate of the center of the capsule, in meters.
radiusnumber1 The radius of the capsule, in meters.
lengthnumber1 The length of the capsule, not including the caps, in meters.

Returns

NameTypeDescription
colliderCollider The new Collider.

Arguments

NameTypeDefaultDescription
positionVec3 The position of the center of the capsule, in meters.
radiusnumber1 The radius of the capsule, in meters.
lengthnumber1 The length of the capsule, not including the caps, in meters.

Returns

NameTypeDescription
colliderCollider The new Collider.

See also