While testing example 07.Collision I noticed that when you jumped towards specific locations you could literaly stick to the ceilingAm I doing something wrong? Possible bug with Irrlicht's collision algorithm!
![Laughing :lol:](./images/smilies/icon_lol.gif)
For instance, jumping towards this set of triangles.
![Image](http://i.imgur.com/xXa3ptd.jpg)
Would get you up in the ceiling and if you continued holding "jump", you would stay up there forever!
![Image](http://i.imgur.com/vVHiYqx.jpg)
I don't believe this was intended!
The only thing I added was this:
Code: Select all
SKeyMap keyMap[6];
keyMap[0].Action = EKA_MOVE_FORWARD;
keyMap[0].KeyCode = KEY_KEY_W;
keyMap[1].Action = EKA_MOVE_BACKWARD;
keyMap[1].KeyCode = KEY_KEY_S;
keyMap[2].Action = EKA_STRAFE_LEFT;
keyMap[2].KeyCode = KEY_KEY_Q;
keyMap[3].Action = EKA_STRAFE_RIGHT;
keyMap[3].KeyCode = KEY_KEY_E;
keyMap[4].Action = EKA_JUMP_UP;
keyMap[4].KeyCode = KEY_SPACE;
keyMap[5].Action = EKA_CROUCH;
keyMap[5].KeyCode = KEY_CONTROL;
scene::ICameraSceneNode* camera = smgr->addCameraSceneNodeFPS(0, 100.0f, .3f, ID_IsNotPickable, keyMap, 6, true, 3.f);