What it does
SphereCast3DPhysics takes rayID (an integer), fromVec3ID (an integer), toVec3ID (an integer) and radius (a float), and returns nothing. rayID is the id of a Ray object, obtained elsewhere in the 3DPhysics family.
Syntax
SphereCast3DPhysics(rayID integer, fromVec3ID integer, toVec3ID integer, radius float)Parameters
| Name | Type |
|---|---|
| rayID | integer |
| fromVec3ID | integer |
| toVec3ID | integer |
| radius | float |
Every form returns
nothing
Example · generated
ray = Create3DPhysicsRay()SphereCast3DPhysics(ray, 1, 1, 1.0)DO Sync()LOOPCreate3DPhysicsRay is there to give the call something to act on; SphereCast3DPhysics is the line that matters. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.