CamOrient

From NexusWiki
Jump to: navigation, search

CamOrient(ship, heading, pitch, distance, time);

It sets the camera to a certain position according to a ship, in given time, the turnings are to be understood relative to the ship’s fore-axis. After the operation, the ship will be the looked ship. It doesn’t set roll=0, but it leaves the actual roll.

Heading : in degrees, ex:180 -> you will look from behind the ship when time ends, turning around Z axis

Pitch : in degrees, ex:90 -> you will look under the ship when time ends, turning around Y axis

Distance : distance from which you will see the "ship"