What it does
SphereCast3DPhysicsObject takes objID (an integer), rayID (an integer), fromVec3ID (an integer), toVec3ID (an integer) and radius (a float), and answers an integer. objID is the id of a 3D object, obtained elsewhere in the 3DPhysics family.
Syntax
SphereCast3DPhysicsObject(objID integer, rayID integer, fromVec3ID integer, toVec3ID integer, radius float) → integerParameters
| Name | Type |
|---|---|
| objID | integer |
| rayID | integer |
| fromVec3ID | integer |
| toVec3ID | integer |
| radius | float |
Every form returns
integer
Example · generated
object = CreateObjectSphere(1.0, 1, 1)ray = Create3DPhysicsRay()DO Print(SphereCast3DPhysicsObject(object, ray, 1, 1, 1.0)) Sync()LOOPCreateObjectSphere and Create3DPhysicsRay are there to give the call something to act on; SphereCast3DPhysicsObject 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.