Physics3DRayCastFraction

Family: 3DPhysics · One form

What it does

Physics3DRayCastFraction takes rayID (an integer), and answers a float. rayID is the id of a Ray object, obtained elsewhere in the 3DPhysics family.

Syntax

Physics3DRayCastFraction(rayID integer) → float

Parameters

NameType
rayIDinteger

Every form returns

float

Example · generated

ray = Create3DPhysicsRay()DO  Print(Physics3DRayCastFraction(ray))  Sync()LOOP

Create3DPhysicsRay is there to give the call something to act on; Physics3DRayCastFraction 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