| com. | |
| Variables | |
| m_Pos | These static variables are updated every 0.5 sec with info about cameras current posistion and rotation. |
| m_AngleY | The cameras angle around the y axis. |
| m_CinematicStripHeight | The height of one black part of the cinematic letterbox. |
| SignalCinematicActivated | Signal send when cinematic is started or ended. |
| Functions | |
| RunCameraPath | Runs a camerapath. |
| PlaceCamera | Place the cinematic camera at a position looking at something. |
| SetFOV | Set field of view for the cinematic camera. |
| RequestCameraPosRotUpdates | Tell gamecode to start filling m_Pos and m_AngleY every interval. |
| GetZoom | Get the zoom position of the camera |
public static function RunCameraPath( pathName: String, switchToDefaultCamWhenDone: Boolean, initialPosition: Number, targetPosition: Number ) : Void
Runs a camerapath.
| pathName | :String Path to play. |
| switchToDefaultCamWhenDone | :Boolean Set camera back? |
| initialPosition | :Number Start pos on the path. |
| targetPosition | :Number End pos on the path. |
public static function PlaceCamera( posX: Number, posY: Number, posZ: Number, offsetX: Number, offsetY: Number, offsetZ: Number, upX: Number, upY: Number, upZ: Number ) : Void
Place the cinematic camera at a position looking at something.
| posX | :Number The new position of the camera in world coordinates. |
| offsetX | :Number The position to look at in world coordinates. |
These static variables are updated every 0.5 sec with info about cameras current posistion and rotation.
public static var m_Pos: Vector3
The cameras angle around the y axis.
public static var m_AngleY
The height of one black part of the cinematic letterbox.
public static var m_CinematicStripHeight
Signal send when cinematic is started or ended.
public static var SignalCinematicActivated: Signal
Runs a camerapath.
public static function RunCameraPath( pathName: String, switchToDefaultCamWhenDone: Boolean, initialPosition: Number, targetPosition: Number ) : Void
Place the cinematic camera at a position looking at something.
public static function PlaceCamera( posX: Number, posY: Number, posZ: Number, offsetX: Number, offsetY: Number, offsetZ: Number, upX: Number, upY: Number, upZ: Number ) : Void
Set field of view for the cinematic camera.
public static function SetFOV( fov: Number ) : Void
Tell gamecode to start filling m_Pos and m_AngleY every interval.
public static function RequestCameraPosRotUpdates( startUpdates: Boolean ) : Void
Get the zoom position of the camera
public static function GetZoom( ) : Number