|
|
Terrain | terrain = null |
| |
|
float | worldSize = 0 |
| |
|
Shape3D | skyBox = null |
| |
|
float | hoverHeight = 10 |
| |
|
boolean | hugTerrain = true |
| |
This camera can be used with the Terrain and Box classes to producea FP view.
- Author
- Peter Lager
| shapes3d.utils.TerrainCamera.TerrainCamera |
( |
Terrain |
terrain, |
|
|
Shape3D |
sky_scene |
|
) |
| |
Create a Terrain camera for a predefined Terrain and SkyBox
- Parameters
-
| terrain | the terrain to be viewed with this camera |
| sky_scene | the skybox to surround this camera |
| 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
-
| deltaTime | the elapsed time (s) |
The documentation for this class was generated from the following file:
- /Users/peter/git/shapes3d-repos/Shapes 3D/src/shapes3d/utils/TerrainCamera.java