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.
rotated result of getSceneNodeAndCollisionPointFromRay
Re: rotated result of getSceneNodeAndCollisionPointFromRay
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.
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.