diff options
author | David Walter Seikel | 2013-01-23 04:39:12 +1000 |
---|---|---|
committer | David Walter Seikel | 2013-01-23 04:39:12 +1000 |
commit | e21ef5cff24774ca85f4ab3adc27131e569be74e (patch) | |
tree | 35d6670f4c0b90dbe21dafeaed2d04827a1c97e6 /ClientHamr/extantz/CDemo.cpp | |
parent | Stabilise the GL image with respect to window resizes. Still needs some clea... (diff) | |
download | SledjHamr-e21ef5cff24774ca85f4ab3adc27131e569be74e.zip SledjHamr-e21ef5cff24774ca85f4ab3adc27131e569be74e.tar.gz SledjHamr-e21ef5cff24774ca85f4ab3adc27131e569be74e.tar.bz2 SledjHamr-e21ef5cff24774ca85f4ab3adc27131e569be74e.tar.xz |
Clone CSceneNodeAnimatorCameraFPS so I can start to morph it into a real camera.
Diffstat (limited to '')
-rw-r--r-- | ClientHamr/extantz/CDemo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ClientHamr/extantz/CDemo.cpp b/ClientHamr/extantz/CDemo.cpp index 5f67928..929f0db 100644 --- a/ClientHamr/extantz/CDemo.cpp +++ b/ClientHamr/extantz/CDemo.cpp | |||
@@ -3,6 +3,7 @@ | |||
3 | 3 | ||
4 | #include <irrlicht.h> | 4 | #include <irrlicht.h> |
5 | #include "extantz.h" | 5 | #include "extantz.h" |
6 | #include "extantzCamera.h" | ||
6 | #include "CDemo.h" | 7 | #include "CDemo.h" |
7 | 8 | ||
8 | 9 | ||
@@ -214,7 +215,7 @@ void CDemo::switchToNextScene() | |||
214 | keyMap[8].Action = EKA_JUMP_UP; | 215 | keyMap[8].Action = EKA_JUMP_UP; |
215 | keyMap[8].KeyCode = KEY_KEY_J; | 216 | keyMap[8].KeyCode = KEY_KEY_J; |
216 | 217 | ||
217 | camera = sm->addCameraSceneNodeFPS(0, 100.0f, .4f, -1, keyMap, 9, false, 3.f); | 218 | camera = addExtantzCamera(sm, 0, 100.0f, .4f, -1, keyMap, 9, false, 3.f, false, true); |
218 | camera->setPosition(core::vector3df(150, 170, -160)); | 219 | camera->setPosition(core::vector3df(150, 170, -160)); |
219 | camera->setFarValue(5000.0f); | 220 | camera->setFarValue(5000.0f); |
220 | 221 | ||