Game Development Community

Z-Axis Smooth Camera Movement

by David Jarvis · in Torque 3D Beginner · 09/13/2010 (2:40 pm) · 1 replies

Hi All,

Does anyone know how to have a smooth camera movement (like newton mode) along the z-axis in an RTS style camera mode? I figure this could be done in 2 ways, but I haven't been able to get either way to work:

1. Using overhead mode, change the camera.position along the z axis, but newton mode for overhead mode seems to only work along the horizontal plane. (Im using camera.position, is there a better way?)

Or..

2. Use fly mode, and redo moveup to only use the zaxis and redo the other controls to only use the horizontal axis.

Also...is there a listing of all camera methods somewhere out there or do we need to wait for version 1.1? The documentation lists a few things, but it dosen't seem like a complete reference. Im just using the demo, so I can't go into the code and look around...


#1
09/15/2010 (7:33 am)
In case anyone cares...camera.setVelocity(Vector) does a decent enough job, although it only smooths towards the stopping, not the start of the movement.

That 1.1 documentation sure is helpful :)