What it does
RayCast3DPhysics takes rayID (an integer), fromVec3ID (an integer), toVec3ID (an integer) and allOrClosest (an integer), and returns nothing. rayID is the id of a Ray object, obtained elsewhere in the 3DPhysics family.
Syntax
RayCast3DPhysics(rayID integer, fromVec3ID integer, toVec3ID integer, allOrClosest integer)Parameters
| Name | Type |
|---|---|
| rayID | integer |
| fromVec3ID | integer |
| toVec3ID | integer |
| allOrClosest | integer |
Every form returns
nothing
Example · generated
ray = Create3DPhysicsRay()RayCast3DPhysics(ray, 1, 1, 1)DO Sync()LOOPCreate3DPhysicsRay is there to give the call something to act on; RayCast3DPhysics 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.