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.

AppGameKit Classic Chat / How do I move a rotated camera forward

Author
Message
dijster
12
Years of Service
User Offline
Joined: 16th Aug 2011
Location: Sheffield, UK
Posted: 5th Nov 2012 12:21
I have a camera set up and controls to allow it to rotate.
How would I move it forward, depending on the direction it is facing.

Thanks

Very funny Scotty, Now beam my clothes up!
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 5th Nov 2012 14:45
MoveCameraLocalZ with a positive value will move it forward, use a negative value to move it backwards.
dijster
12
Years of Service
User Offline
Joined: 16th Aug 2011
Location: Sheffield, UK
Posted: 5th Nov 2012 14:56
Doh,
I'm sure I tried that and it didn't work if the camera is rotated.
It does though, and works brilliant.
Thanks for the reply

Very funny Scotty, Now beam my clothes up!

Login to post a reply

Server time is: 2024-05-07 18:56:33
Your offset time is: 2024-05-07 18:56:33