hey again,
do you have an algorithm written for what exactly you're trying to do?
depening on it's complexity i could write it for you but i want to make sure i don't need to keep adapting it
----------
Truly what I need is just a simple camera code where it can be controlled by the WASD keys just like the free camera, but instead rotating on its own axis for pan and tilt, it orbits around the current center of the view by using the right mouse button to control the rotation (move left and it orbits to the left, move right, and it does the opposite, etc.). I've looked all over for simple code that does this but I can't seem to find any, which is why I'm trying to modify the existing cameraFree code. If anyone knows of something I'm missing then please by all means point me in the right direction. I did find some code here in the forum that seems to be what I need, but I can't get it working for some reason, no matter how I try it.
My projects just come to a grinding halt so i'll add the requirements
from what i've read, here's what you want
W = move camera forward,
S = move camera backward,
A = move camera left,
D = move camera right,
mickey.x = pan camera around a world vector, or entity
mickey.y = tilt camera around a world vector, or entity
mickey.z = zoom in and out (not requested but would be good)
questions...
can there be an entity selected?
if there is an entity selected, will 'A' move left from it's position, left from the world position, or rotate left around the selected entity?
if there is no entity selected, will 'A' move left from it's position, left from the world position, or rotate left around the centre point on screen
'D' see 'A' move right
if there is an entity selected and the camera is higher than the entity, or central world space. Will 'W' move the camera go above this point staying at it's same .z coordinates, or move directly towards the entity or space? (zoom in)
'S' see 'W' move backwards (zoom out)
can the camera go through terrain?
if the camera is centred on an entity and the entity moves, will it follow that entity, face that entity, both or neither?
is the orbit distance fixed at all times or can it be increased/decreased?
if a new entity / world point is selected, will the camera move directly to it (teleport) or move there accelerating and decelerating, or move there at a constant speed, or not move at all?
just a few things you should think about and what kind of game are you making, might give me some insight
Hope this helps!