Weird rotation behavior?

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
starphoenix
Posts: 13
Joined: Thu Mar 27, 2008 2:59 am

Weird rotation behavior?

Post by starphoenix »

So I'm triyng to use irrlicht as the graphics engine for a physics engine I'm working on, and so far its been great. The only thing thats been a problem is fully dealing with the fact that Irrlicht is a left handed coordinate system. Right now I'm running into some weird issues with my collision detection, which isn't really the problem I'm asking about.
What I'm asking about here is I've created some graphical debug objects to visualize whats going on under the hood with my algorithms. I've created a small sphere at the point of contact between two bodies, and it seems to follow the vertex properly, but it seems to be following the wrong vertex. I was running into an issue before where I was computing the point to draw it at using my right handed rotations, but converting the graphical point to one computed by a left handed rotation seemed to fix that problem.
I know this question is kind of complicated, but what I'm trying to figure out is whether I'm computing the wrong point or if its the graphics drawing things a little bit unexpectedly. Heres a screenshot of the issue in question, the box is colliding with the ground, and that white circle is corresponding to the vertex that is computed as being in contact with the ground, which its clearly not.
I'll do my best to clarify anything I can, I'm really trying to figure out whats going wrong here.
Image
Post Reply