Navigation handles user input (key presses, mouse movement, touches on mobile devices, …) to control the camera.
To use a navigation, just create and add the navigation component as a child of
TCastleViewport. You can control the
Exists property of the navigation to enable / disable it.
TCastleNavigation class is abstract, you actually have to use some descendant of it, like:
TCastleExamineNavigation - inspect the 3D model, moving and rotating it to easily look at every side.
TCastle2DNavigation - specialized navigation for 2D. Makes it easy to move a 2D world, without accidentally making a rotation that would reveal it is 3D.
You have complete freedom how do you handle the input in your games. You can
To improve this documentation just edit the source of this page in AsciiDoctor (simple wiki-like syntax) and create a pull request to Castle Game Engine WWW (cge-www) repository.