Camera Movement

From TDN

Original Question:

Effect I'm wanting to achieve: The player can move around the window, but the camera scrolls to prevent movement off of the window.

Planned method: Set the world limit for player with NULL and a callback to a function setting the camera velocity appropriately.

Problem: I can't find a way to set camera velocity. I could extrapolate a position, set a target, start the camera move and have the movement interpolated but that seems like a lot of work to get back to the same place.

What am I missing?

test

Answer:

Don't forget that you can mount the camera to any T2D object, even use forces. You can also restrict the view so a larger region and the camera will never view outside of it which is important if you want your player to be able to move there and the camera is mounted to it.

- Melv.

Result:

@Melv: Thanks! I'd missed being able to mount with a force and that does *exactly* what I want. Now its just a matter of playing with the force numbers.