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 / Move object with mouse?

Author
Message
paulhenry
16
Years of Service
User Offline
Joined: 20th Jun 2008
Location:
Posted: 5th Mar 2009 18:28
Im trying to move a object(6) with the mouse,not rotate it,checked for tuts but cant find none,this nearly moves it:

[/code]
Dragon Knight
17
Years of Service
User Offline
Joined: 10th Jan 2007
Location: Newcastle
Posted: 6th Mar 2009 04:19 Edited at: 6th Mar 2009 04:23
ahm how about this:



I think your camera might be automatically looking at the object, maybe your using point camera? And without backgrounds etc..., it can look like it's rotating which it's not, hope that example code works. You should be able to just copy and paste it straight in.

X Y Z
X= left right
Y= Height Up Down
Z= Depth backwards and forwards

In this example i just use X and Z with a top down camera

Side Note:
I had to reverse the mousemoveY, to allow up to be.. well up and down to be down

paulhenry
16
Years of Service
User Offline
Joined: 20th Jun 2008
Location:
Posted: 6th Mar 2009 20:34
Thanks very much,did the trick.

Login to post a reply

Server time is: 2024-11-25 10:26:23
Your offset time is: 2024-11-25 10:26:23