Orient yourself in 3D space

When you initialize your game world, you want to fill the empty scene. Maybe you add a ground with streets and some buildings, or a terrain with forests and caves. You strategically place your players and enemies, and you sprinkle some treasure and traps on the map. Now how exactly do you tell the jMonkeyEngine where to place an object? You need a way to orient yourself in 3D space—through a coordinate system.

The following figure is based on an image created by Sakurambo, and can be found at http://de.wikipedia.org/w/index.php?title=Datei:3D_coordinate_system.svg.

Orient yourself in 3D space

The jMonkeyEngine uses a right-handed coordinate system, ...

Get jMonkeyEngine 3.0 Beginner's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.