lovr.physics.newCapsuleShape
EditCreates a new CapsuleShape. Capsules are cylinders with hemispheres on each end.
capsule = lovr.physics.newCapsuleShape(radius, length)
Arguments
Name | Type | Default | Description |
radius | number | 1 | The radius of the capsule, in meters. |
length | number | 1 | The length of the capsule, not including the caps, in meters. |
Returns
Name | Type | Description |
capsule | CapsuleShape | The new CapsuleShape. |
Notes
A Shape can be attached to a Collider using Collider:addShape
.