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 / Walk towards mouse question

Author
Message
MatriX
21
Years of Service
User Offline
Joined: 19th Oct 2003
Location: Deer Park, New York
Posted: 16th Apr 2006 00:22
I was wondering if it was simple to be able to make a 3d object move towards or follow the mouse pointer. I would like to make a sort of "hack n slash" gauntlet type game but the fact that the mouse is on a 2D plain that doesnt relate to the 3D world is throwing me off. I found some interesting code about detecting mouse in 3D space with Vectors and I tried it kind of worked however it didnt follow the mouse exactly. Is there a simpler way then vectors? Has anyone seen an example of a 3D object following the mouse?

Success does not come with meeting the minimum requirements.

Visit Chromaware Interactive Studios @ www.chromaware.com
Twu Kai
19
Years of Service
User Offline
Joined: 2nd Oct 2005
Location:
Posted: 16th Apr 2006 18:57 Edited at: 16th Apr 2006 18:57
Well, you can use an object to be the "Mouse" object?

If so, here's a link to my function for it: http://forum.thegamecreators.com/?m=forum_view&t=74694&b=6

Hope it helps!

Join The Clan! http://www.torak.info

Desteya colatiata hethayas thorian helltastha lutanithan atelthuron ilonthes!

Login to post a reply

Server time is: 2024-11-26 23:38:43
Your offset time is: 2024-11-26 23:38:43