Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

These functions are available when you enable enable Use Script in the Simulation rollout of a Phoenix Simulator.

...

FunctionDescription
OnSimulationBeginCalled after the initialization of the simulator is done and before first execution.
OnSimulationStepCalled before each simulation step, after the interaction with the scene.
OnSimulationEndCalled after the end of the simulation. The simulation core, referred to by the 'this' variable, would be already destroyed during this callback so it should not be accessed.
OnNewFrameCalled after each frame export.

...

Global Variables

...

The following global variables are initialized before entry in the callback functions:

...