Adds a new Collider to the World with a SphereShape already attached.
Arguments
Name | Type | Default | Description |
x | number | 0 |
The x coordinate of the center of the sphere, in meters.
|
y | number | 0 |
The y coordinate of the center of the sphere, in meters.
|
z | number | 0 |
The z coordinate of the center of the sphere, in meters.
|
radius | number | 1 |
The radius of the sphere, in meters.
|
Returns
Name | Type | Description |
collider | Collider |
The new Collider.
|
Arguments
Name | Type | Default | Description |
position | Vec3 | |
The position of the center of the sphere, in meters.
|
radius | number | 1 |
The radius of the sphere, in meters.
|
Returns
Name | Type | Description |
collider | Collider |
The new Collider.
|
See also