Now the collision detection tutorial works perfect with me, and my CameraSceneNode collides 100% with the terrain (actually its *.my3d node).
But the problem i am facing now, that the FPS camera is still able to go VERY HIGH slops! .. while logically it is not suppose to climb it!
So, anyone have any idea how to prevent my CameraSceneNode to climb such edges .. is there any function or feature that i can use, to define what height the camera can go and what it can't!
Collision Detection, and Height Detection help needed!
-
- Posts: 16
- Joined: Sat May 06, 2006 4:36 am
try replacing your camera with this 1, see if it works any better:
Code: Select all
scene::ICameraSceneNode* camera =
smgr->addCameraSceneNodeFPS(0, 100.0f, 40.0f, -1, 0, 0, true);