Author Topic: Rotate Orbit Camera [Solved]  (Read 890 times)

I want the camera to face me when I spawn it. I've got the code working already, but I don't know how to rotate the cam.
Code: [Select]
%pos = %obj.getEyeTransform();
%camera = %obj.client.camera;
%camera.setOrbitMode(%obj, %pos, 0.5, 8, 2, 1);
%camera.mode = "Orbit";
%obj.client.setControlObject(%camera);
« Last Edit: April 09, 2013, 10:03:20 PM by tommybricksetti »

virtual void Camera::setOrbitMode (GameBase orbitObject, transform mat, float minDistance, float maxDistance, float curDistance, bool ownClientObject)

Specify a rotation with mat. It's a regular transform field, such as the one used by simObject::setTransform(transform mat).

virtual void Camera::setOrbitMode (GameBase orbitObject, transform mat, float minDistance, float maxDistance, float curDistance, bool ownClientObject)

Specify a rotation with mat. It's a regular transform field, such as the one used by simObject::setTransform(transform mat).
worked, ty.