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) → integerParameters
| Name | Type |
|---|---|
| objID | integer |
| fileName | string |
Every form returns
integer
Example · generated
object = LoadObjectShape(1, "assets/media.obj")DO Print(SaveObjectShape(object, "assets/data.dat")) Sync()LOOPLoadObjectShape 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.