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 / Point object confuddled

Author
Message
Nights Bane
14
Years of Service
User Offline
Joined: 15th Dec 2009
Location:
Posted: 2nd Jan 2010 00:03
Im using this as debug code:



10 is my Player Object, I want my player to point at the mouse coordinates, yet the player object is doing some unusual rotation, he's positioned at 0,0,0 and faces north.
Nights Bane
14
Years of Service
User Offline
Joined: 15th Dec 2009
Location:
Posted: 2nd Jan 2010 01:06
Okay, I found a post that suggests I do this:



The behaviour is getting more like it. Going to try variations on this, its still not quite right, doesnt seem to rotate very much.
Zaibatsu
18
Years of Service
User Offline
Joined: 1st May 2006
Location: Lost in Thought
Posted: 2nd Jan 2010 04:53
The problem is that MOUSEX() and MOUSEY() are 2d screen coordinates, and you can't point a 3D object at them. You need to use the PICK SCREEN command to get a 3D coordinate out of it.

Login to post a reply

Server time is: 2024-09-28 14:19:57
Your offset time is: 2024-09-28 14:19:57