sm.camera.cameraSphereCast
Performs a distance convex sweep with the shape of a sphere, from a position with a given direction.
Kind: Function
Environments: Game
Game
sm.camera.cameraSphereCast( radius, start, direction )
Availability: Client only
Parameters:
| Name | Type | Description |
|---|---|---|
radius |
number | The radius of the cast sphere |
start |
Vec3 | The start position. |
direction |
Vec3 | The cast direction and range. |
Returns:
| Type | Description |
|---|---|
| number | The fraction of the distance reached until collision. |