Directional Input

Started by
0 comments, last by guivieira 19 years, 10 months ago
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!
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


"Let Us Now Try Liberty"-- Frederick Bastiat

This topic is closed to new replies.

Advertisement