Hi im trying to modify a currently basic camera that orbits around a center point always looking at the center point.
I want to set up a camera system where i can give the camera a point in 3d space and it will smoothly orbit around to the point.
at the moment i just have a basic algorithm that takes the mouse diplacement as its parameters
float cos = (float)Math.cos(rotXDisplacement);
float x = cos*(float)Math.cos(rotYDisplacement) * zoomDisplacement;
float y = (float)Math.sin(rotXDisplacement) * zoomDisplacement;
float z = cos*(float)Math.sin(rotYDisplacement) * zoomDisplacement;
view.getTransform().lookAt(new Vector3f( x, y, z), // location of eye
centerVector, // center of view
upVector);
I have no idea of where to start implementing a path finding algorithm so if anyone has any good ideas links to tutorails etc. it’id be great ;D

got pointed towards quaternions for smooth rotations, apparently most top class games use tham for rotaions in place of the standard matrix. so anyway i’m just printing off stuff about quaternions now and going to give it a look over other than that i’m not much help at the mo