lovr.physics.newCylinderShape

Creates a new CylinderShape.

cylinder = lovr.physics.newCylinderShape(radius, length)

Arguments

NameTypeDefaultDescription
radiusnumber1The radius of the cylinder, in meters.
lengthnumber1The length of the cylinder, in meters.

Returns

NameTypeDescription
cylinderCylinderShapeThe new CylinderShape.

Notes

A Shape can be attached to a Collider using Collider:addShape.

See also