Page 1 of 1

Am I doing something wrong? Possible bug with irr's ....

Posted: Sun Aug 18, 2013 9:47 pm
by Isomorphix
Am I doing something wrong? Possible bug with Irrlicht's collision algorithm!
While testing example 07.Collision I noticed that when you jumped towards specific locations you could literaly stick to the ceiling :lol:

For instance, jumping towards this set of triangles.

Image

Would get you up in the ceiling and if you continued holding "jump", you would stay up there forever!

Image

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);
 
Am I doing something wrong?

Re: Am I doing something wrong? Possible bug with irr's ....

Posted: Mon Aug 19, 2013 9:23 am
by CuteAlien
No you are not doing anything wrong. It's unfortunately a bug in Irrlicht: http://sourceforge.net/p/irrlicht/bugs/399/

So far no-one seems to have found time to work on that unfortunately, so I have no solution for you right now except using the collisions system of some physics engine instead. The build-in stuff is nice for coding quick prototypes, but for most serious games you need more advanced solutions.