World:newCylinderCollider

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

collider = World:newCylinderCollider(x, y, z, radius, length)

Arguments

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

Returns

NameTypeDescription
colliderCollider The new Collider.

See also