World:newSphereCollider
Adds a new Collider to the World with a SphereShape already attached.
collider = World:newSphereCollider(x, y, z, radius)
Arguments
Name | Type | Default | Description |
x | number | 0 | The x coordinate of the center of the sphere.
|
y | number | 0 | The y coordinate of the center of the sphere.
|
z | number | 0 | The z coordinate of the center of the sphere.
|
radius | number | 1 | The radius of the sphere, in meters.
|
Returns
Name | Type | Description |
collider | Collider | The new Collider.
|
See also
SphereShape
Collider
World:newCollider
World:newBoxCollider
World:newCapsuleCollider
World:newCylinderCollider
World:newMeshCollider
World