World:newCylinderCollider

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

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

Arguments

NameTypeDefaultDescription
xnumber0The x coordinate of the center of the cylinder.
ynumber0The y coordinate of the center of the cylinder.
znumber0The z coordinate of the center of the cylinder.
radiusnumber1The radius of the cylinder, in meters.
lengthnumber1The length of the cylinder, in meters.

Returns

NameTypeDescription
colliderColliderThe new Collider.

See also