Loading and creating objects specified in config file or runtime
Allow scene objects to be placed an oriented and is defined in a config file rather than hard coded
Also includes poolobjects which allows things like vegetation where rather than define 1000 trees in a forest, define say 20 and have only the closest 20 appear near the camera
Poolobjects can also be defined runtime rather than config file and is useful for defining crowds of actors
Class allows run time obstacles to be placed in a game. Also includes a callback when an obstacle is hit by a player
Allows a player to be stopped without relying on walls defined in terrain model
Load a pool object specified in config.json
poolsize is how many objects in the pool
maxdistance is distance where ignore the object if too far away - make zero if no maxdistancename is the name of the object3d in the pool
positions is a list of every position of the object - really should be more positions than poolsize otherwise no point
Class allows players to jump between areas
It made up of a rectangle where if hit by player, takes them to a second define point
It is useful for allowing players transition to different level eg a portal at the bottom of some stairs that takes them to the top of the stairs at a different level
Procedures related to rooms
As a player moves around can enter a room which has a position with width and height
Can set that indoors so it doesn't rain inside and also set the background sound of the room
Can also set trigger so when enter a room certain things can happen
Keyboardcallbacks allow callback for keyboard presses with conditions including distance and angle facing an object
For example if a certain distance from a donkey to ride and facing direction the callback will be called if the key is pressed