lovr.physics.newCylinderShape
EditCreates a new CylinderShape.
cylinder = lovr.physics.newCylinderShape(radius, length)
Arguments
Name | Type | Default | Description |
radius | number | 1 | The radius of the cylinder, in meters. |
length | number | 1 | The length of the cylinder, in meters. |
Returns
Name | Type | Description |
cylinder | CylinderShape | The new CylinderShape. |
Notes
A Shape can be attached to a Collider using Collider:addShape
.