rotated result of getSceneNodeAndCollisionPointFromRay

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
szpaq234
Posts: 4
Joined: Tue Jul 19, 2011 2:49 pm

rotated result of getSceneNodeAndCollisionPointFromRay

Post by szpaq234 »

I've created ray from cursor to check the collision with the ground but the result of getSceneNodeAndCollisionPointFromRay is rotated -90 deg along x axis to what is drawn.
The node is loaded from x file. Exactly the same 3ds file works fine.
szpaq234
Posts: 4
Joined: Tue Jul 19, 2011 2:49 pm

Re: rotated result of getSceneNodeAndCollisionPointFromRay

Post by szpaq234 »

I managed to go around this.
First, in blender when i export x mesh i have to uncheck "Rotate X 90 deg" and rotate mesh in my application instead.
Also, i have to select right-handed coordinate system which seems to be set in irrlicht by default.
Post Reply