Scripting

Phyzios supports scripting in C# using built-in functions to control the game.

Scripts can be written at the bottom of the save file for game logic, or written into individual object Modules.

onSimulate

<< END

gravityAngle = randSeed;

END

Breakdown of the above script:

onSimulate <-- This signifies that the script will run continuously while the simulation is unpaused

<< END <-- This is the beginning of a code block

gravityAngle = randSeed; <-- This sets the angle of gravity to a random number

END <-- after successfully performing the above action, the script will end and the simulation will resume like normal, until the next call for the script