ReadonlycameraA camera, for making sure important actors are on screen
ReadonlyoneEvents that get processed on the next render, then discarded
The physics system for the scene * *
ReadonlyrepeatEvents that get processed on every render. Each one is given dt, the
number of seconds since the previous render.
ReadonlytimerA timer, for creating time-based events
The gravity in this world
The gravitational force in the x dimension
The gravitational force in the y dimension (remember up is negative!)
Set (or reset) the gravity in this world
The gravitational force in the x dimension
The gravitational force in the y dimension (remember up is negative!)
A Scene is a container that represents an interactive, dynamic, visible portion of a game. Every scene has actors inside of it, via its physics world, and also has a timer and a camera.
There are three primary uses of Scenes: