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

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Isomorphix
Posts: 16
Joined: Fri Aug 16, 2013 5:08 pm

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

Post 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?
CuteAlien
Admin
Posts: 9693
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

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

Post 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.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply