Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

guivieira

Directional Input

This topic is 5278 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi guys! I think this is a easy question for you! How can I implement a directional input? Imagine a car toy for example, like an autorama. So you will use the arrows keys to drive the car, right? Pressing the up arrow will always make your little car run towards! Even if the towards lay on X or Z axis. Please, please help me!

Share this post


Link to post
Share on other sites
Advertisement
manage it in almost exactly the same way you manage a first person camera.

if you search these forums for "camera code quaternion", you''ll finds a fully implemented quaternion camera that i gave code for around a year ago. the method you use to fill your response variables are loosely coupled, so it should just snap right into your system. the major change being that instead of filling the final quaternion, you''ll use the naked vector that the code produces to "steer" your car.

Dredd
________________________________________

"To die with your sword still in its sheath is most regrettable" -- Miyomoto Musashi


Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!