SaveObjectShape

Family: 3DPhysics · One form

What it does

SaveObjectShape writes to a 3DPhysics object: it saves rather than reads. It takes objID (an integer) and fileName (a string), and answers an integer. objID is the id of a 3D object, obtained elsewhere in the 3DPhysics family.

Syntax

SaveObjectShape(objID integer, fileName string) → integer

Parameters

NameType
objIDinteger
fileNamestring

Every form returns

integer

Example · generated

object = LoadObjectShape(1, "assets/media.obj")DO  Print(SaveObjectShape(object, "assets/data.dat"))  Sync()LOOP

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