SphereCast3DPhysics

Family: 3DPhysics · One form

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

NameType
rayIDinteger
fromVec3IDinteger
toVec3IDinteger
radiusfloat

Every form returns

nothing

Example · generated

ray = Create3DPhysicsRay()SphereCast3DPhysics(ray, 1, 1, 1.0)DO  Sync()LOOP

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

144 commands in 3DPhysics