LoadObjectShape

Family: 3DPhysics · One form

What it does

LoadObjectShape writes to a 3DPhysics object: it loads rather than reads. It takes objID (an integer) and fileName (a string), and answers an integer. objID is the id you are giving a 3D object: every later call names it by that number.

Syntax

LoadObjectShape(objID integer, fileName string) → integer

Parameters

NameType
objIDinteger
fileNamestring

Every form returns

integer

Example · generated

objectShape = LoadObjectShape(1, "assets/data.dat")DO  Sync()LOOP

LoadObjectShape is called and its answer is printed every frame. 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