Terrain coordinates

Irrlicht.Net is no longer developed or supported, Irrlicht.Net Cross Platform is a much more complete wrapper. Please ask your C# related questions on their forums first.
Locked
ralo
Posts: 10
Joined: Sat Jan 27, 2007 1:06 pm

Terrain coordinates

Post by ralo »

Dear All,

I am trying to get the 3d coordinates; where the mouse has clicked on terrain.
What i am trying here is some thing like AOE, i had a object which will walk to the position where mouse is clicked on terrain.
Please advice if there is some good technique to implement that.

Thanks and Regards,
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

look at the C++ collision tutorial, it shows how to project a ray from screen coordinates and collide it with your world.
the only difference is you'll be using your mouse coordinates instead of the centre of the screen, using a terrain triangle selector to collide with, and writing it in .net of course.
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
Locked