camera tracking + acceleration

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
qwe
Posts: 112
Joined: Sun Dec 28, 2003 12:54 am
Location: Oregon, USA

camera tracking + acceleration

Post by qwe »

okay, what I'm trying to do is have the camera follow the player. Not statically though; I want there to be a threshold before the camera starts moving, and then I want to have it gently accelerate to follow the player. I'd like to implement it using an animator.
The model here would be a camera on a dolly, which is connected to the player via bungee cord. Once the player moves far enough, the tension on the bungee cord would increase and pull the camera toward the player.
Basically, I want the graph of the formula to look like Speed=maxSpeed-abs(Time-maxSpeed). I've tried using this exact formula but it doesn't work.
Any idea how to implement this? (just the acceleration, not the threshold)
Post Reply