camera/avatar movement adjustment

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Brinsky
Posts: 28
Joined: Sun May 08, 2005 3:05 pm
Location: Slovenia

camera/avatar movement adjustment

Post by Brinsky »

You all must know when you use a FPS camera, apply collision response using some gravity, adjust your keyboard interface and run along your terrain node, that the camera/avatar movement is camera-look-at-a-point based. Thus looking at some angle upwards and moving forward your cam "jumps" and is gravity affected. What I want is that the camera movement is only surface related, meaning XZ-look-at cam coordinates indicate the way of character movement and the keyboard (for example) UP_KEY actualy performes the movement. That would result a non-jump running we all miss :wink:. If anybody's done something like that, I would greatly appreciate the implementation idea or even better (heh) the code sharing.

Take care
10 I lovez my computer
20 goto 10
Post Reply