Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Moving object on mouse click location

Author
Message
inthepast
15
Years of Service
User Offline
Joined: 12th Feb 2009
Location:
Posted: 22nd Feb 2009 13:35
Hey guys...

Im trying to move an object to a location specified by the right click of the mouse..

I've worked out how to pick the object and save it as a variable for use later on.

Any tips on how to do this? Kind of new to Vectors.. I know i'll need to use them.

Thanks in advance.
Neuro Fuzzy
17
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
Posted: 22nd Feb 2009 19:07
so, you want to find the 3d position of the mouse?

if your just using a flat plain as your land, you could do a purely mathematical approach. If your not, then you could use dbPickScreen, and dbGetPickVectorX/Y/Z, and then raycast down to your terrain and find where it intersects.

Login to post a reply

Server time is: 2024-11-25 15:39:50
Your offset time is: 2024-11-25 15:39:50