World:newSphereCollider

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

collider = World:newSphereCollider(x, y, z, radius)

Arguments

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

Returns

NameTypeDescription
colliderCollider The new Collider.

See also