Shapes 3D  3.0
 All Classes Functions Variables Pages
shapes3d.utils.TerrainCamera Class Reference
Inheritance diagram for shapes3d.utils.TerrainCamera:

Public Member Functions

 TerrainCamera (Terrain terrain, Shape3D sky_scene)
 
void update (float deltaTime)
 
TerrainCamera getThis ()
 
TerrainCamera hoverHeight (float hh)
 
float hoverHeight ()
 

Protected Attributes

Terrain terrain = null
 
float worldSize = 0
 
Shape3D skyBox = null
 
float hoverHeight = 10
 
boolean hugTerrain = true
 

Detailed Description

This camera can be used with the Terrain and Box classes to producea FP view.

Author
Peter Lager

Constructor & Destructor Documentation

shapes3d.utils.TerrainCamera.TerrainCamera ( Terrain  terrain,
Shape3D  sky_scene 
)

Create a Terrain camera for a predefined Terrain and SkyBox

Parameters
terrainthe terrain to be viewed with this camera
sky_scenethe skybox to surround this camera

Member Function Documentation

void shapes3d.utils.TerrainCamera.update ( float  deltaTime)

Call the parent method to move the camera based on its velocity.
This this update will modify the camera height based on the terrain height.

Parameters
deltaTimethe elapsed time (s)

The documentation for this class was generated from the following file: