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.

Newcomers DBPro Corner / Finding mouse position on the 3d grid

Author
Message
Avo
14
Years of Service
User Offline
Joined: 12th Jun 2010
Location:
Posted: 20th Jul 2010 23:01 Edited at: 21st Jul 2010 02:13
Ive been working on a real time strategy game here for a while but i have run into trouble when trying to figure out where the mouse is clicking in the 3d world. Does anyone know a way to do this?
BMacZero
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 21st Jul 2010 04:32
Look into the PICK OBJECT and GET PICK VECTOR X/Y/Z commands.

Avo
14
Years of Service
User Offline
Joined: 12th Jun 2010
Location:
Posted: 21st Jul 2010 04:54
Thanks, this is exactly what i needed!
Avo
14
Years of Service
User Offline
Joined: 12th Jun 2010
Location:
Posted: 22nd Jul 2010 22:10
Got it in working order here, the end result does exactly what i need it to.

Login to post a reply

Server time is: 2024-09-28 20:33:49
Your offset time is: 2024-09-28 20:33:49