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.

Dark GDK / 360 movement?

Author
Message
Fency Federejshn
16
Years of Service
User Offline
Joined: 8th Dec 2007
Location:
Posted: 28th Dec 2007 23:55
I've noticed in the DGDK documentation that next to the rotation funciton, it says that combining the movement and rotation function "you" can easily make a perfect 360 movement such as in the asteroids game, unfortunalty i dont quite understand what movement function does it refer to and how to use it?

fency federejshn
Fable
16
Years of Service
User Offline
Joined: 27th Jan 2008
Location:
Posted: 7th Feb 2008 19:33
From what i understand if you want the camera to respond to use input or just turn by itselfs you would put the following code in the main loop. The first two examples will show how to constantly move the camera, using turn camera which is free from any axis so allowing 360 degrees rotation. The third example is how to handle a keypress and rotate the camera accordingly.



You can tweek the code to suit your purposes eg change 20.0f to 10.0f for slower rotation, but if you need any more help or it isnt what you wanted say so

Login to post a reply

Server time is: 2024-11-17 01:01:08
Your offset time is: 2024-11-17 01:01:08