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.

Author
Message
Rob
21
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: Ireland
Posted: 3rd Oct 2002 04:24
I have a rotation problem




I've created an object and a camera and have added functions to the object to rotate, move forward and reverse.
but for some reason it likes to rotate all the time.

Help would be appreciated

Thanks
Rob
21
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: Ireland
Posted: 3rd Oct 2002 13:39
I fixed my problem





Instead of using Joystick Left() and Joystick Right()
I used Joystick x()
This returns a value between -1000 to 1000 depending if you have directed Left or Right.
using two if statements if value of Joystick x() is greater than 10, then go right.
if value of Joystick x() is less than -10, then go left.

end of transmission
Zed
21
Years of Service
User Offline
Joined: 20th Sep 2002
Location:
Posted: 4th Oct 2002 00:00
This line was also a problem:

If should have read:


Login to post a reply

Server time is: 2024-03-28 21:09:38
Your offset time is: 2024-03-28 21:09:38