lovr.physics.newCylinderShape

Edit

Creates a new CylinderShape.

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

Arguments

NameTypeDefaultDescription
radiusnumber1 The radius of the cylinder, in meters.
lengthnumber1 The length of the cylinder, in meters.

Returns

NameTypeDescription
cylinderCylinderShape The new CylinderShape.

Notes

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

See also