Scene Editor
You will need to interact with the 3D game world during quest setup or whenever you need to specify a trigger target. We utilized babylon.js ’s inspector to make a scene editor where you could manipulate the game world.
Navigate the Scene
Navigating the scene could be a little tricky if you’re not familiar with 3D tools. The keys are listed below:
Dolly forward/backward: W / S
Track left/right: A / D
Boom up/down: E / Q
Rotate camera: click and drag
Switch between move/scale/rotate mode: number keys 1/2/3
Removing an actor: X or backspace/delete key
Import an Actor
In the left-side panel, use the dropdown to select the actor you want to add to the scene, then click on the import button. You should be able to place the actor in the scene as you wish, and keep adjusting it after placing it. It should also appear in the inspector panel, listed under Nodes.
Transforming an Actor
Click on Nodes to expand the list and see all the actors in the scene (Or directly click on the target in the scene to select it and skip step 2)
Find and select the actor you want to manipulate. Please note that you should select the highest level of the node, not the details embedded under it.
In the top-right corner of the inspector are mode buttons: position, rotation, scaling, and bounding box (in the bounding box mode, you could do all three previous actions). Click on one of them depending on your needs.
Manipulate the actor in the scene by interacting with the gizmos (arrows/circles/axes/bounding box)
Shortcuts for Transforming an Actor
Select the actor in the scene, use 1/2/3 number keys to switch between the transformation modes, and use the gizmos to manipulate the actor.
Remove an Actor
Through Inspector
Click on “Nodes” in the right side panel to expand the list
Find and select the actor
Click on the Dispose button
Shortcut for Removing an Actor
Select the actor in the scene and hit backspace/delete
Actors of Different Hierarchy
| Definition | Behavior |
Map-wide Actors | Part of the map (level) | Always present as long as the map (level) is used |
Quest-wide Actors | Imported during Map Setup when editing a quest | Exist throughout the quest |
Task-wide Actors | Imported when editing a task | Only exists within the task |