Take a look at the samples of my lib:
http://www.moraldigames.com/Products.html#Products_MeshFactory
You can have a camera following an object with just a line of code and change many parameters of how to do this.
You can change also how much strictly this will be happen.
This may fit to your needs.
Take a look in this example too
http://www.moraldigames.com/Temp/Test.zip
Drive the spaceship with the arrow keys.
Press [SPACE] to toggle the auto camera mode ON/OFF. When auto camera mode is off you can rotate the view using the keys in NUM PAD (press NUM5 to reset view)
Move forward/backward [A]/[Z]
Move up/down [S]/[X]
http://www.moraldigames.com/Products.html#Products_MeshFactory
You can have a camera following an object with just a line of code and change many parameters of how to do this.
You can change also how much strictly this will be happen.
This may fit to your needs.
Take a look in this example too
http://www.moraldigames.com/Temp/Test.zip
Drive the spaceship with the arrow keys.
Press [SPACE] to toggle the auto camera mode ON/OFF. When auto camera mode is off you can rotate the view using the keys in NUM PAD (press NUM5 to reset view)
Move forward/backward [A]/[Z]
Move up/down [S]/[X]