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 / Pick screen

Author
Message
The Zoq2
15
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 1st Oct 2010 23:12 Edited at: 1st Oct 2010 23:13
Hi im making a medival game were you are suposed to use the mouse to swing a sword. so if you move the mouse from the left to right the sword shuld swing like that.

I have made this code were the swors shuld point towards the mouse but when i turn the camera the sword dosn't turn and on the y/z axis the sword goes up when the mouse goes down. and on the x axis the sword goes way to fast and dosen't point towards the mouse.



Srry about my english im from sweeden
Indicium
16
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 17th Oct 2010 20:53
get pick vector x() gives an offset from the camera. Try this.



Login to post a reply

Server time is: 2024-11-23 07:27:05
Your offset time is: 2024-11-23 07:27:05