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.

DarkBASIC Professional Discussion / Positioning the object with the mouse problem

Author
Message
bicaru
10
Years of Service
User Offline
Joined: 13th May 2015
Location: Italy
Posted: 14th May 2015 00:09
Hello guys,

I have this code:



For moving the object with the mouse. However, when i am rotating my camera, when i am trying to move the objects the
movement axis are wrong, example: trying to move the objects to the left, it goes right and so on.

How can i change that movement code to have lets say -mousemovex() / 2 and +mousemovey() / 2 when the camera has different
angles?

Thank You!
Scorpyo
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: italy
Posted: 14th May 2015 18:43
try this attached snippet
Cheers

Attachments

Login to view attachments

Login to post a reply

Server time is: 2025-05-14 19:40:38
Your offset time is: 2025-05-14 19:40:38