RayCast3DPhysics

Family: 3DPhysics · One form

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

NameType
rayIDinteger
fromVec3IDinteger
toVec3IDinteger
allOrClosestinteger

Every form returns

nothing

Example · generated

ray = Create3DPhysicsRay()RayCast3DPhysics(ray, 1, 1, 1)DO  Sync()LOOP

Create3DPhysicsRay 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.

Related commands

144 commands in 3DPhysics