BallisticNG
 All Classes Namespaces Functions Variables Enumerations Properties
Public Member Functions | Public Attributes
ShipCameraModule Class Reference
Inheritance diagram for ShipCameraModule:
BallisticNG.ShipCameras.ClassicChaseCamera BallisticNG.ShipCameras.CockpitCamera BallisticNG.ShipCameras.ExternalCamera BallisticNG.ShipCameras.InternalCamera BallisticNG.ShipCameras.ReverseCamera BallisticNG.ShipCameras.TrackChaseCamera

List of all members.

Public Member Functions

 ShipCameraModule (ShipCamera camera)
virtual void OnInit ()
 Called when this camera has been started.
virtual void OnChangedTo (ShipRefs r)
 Called when this camera mode is changed too.
virtual void OnShipTeleported (Vector3 oldPosition, Quaternion oldRotation, ShipRefs r)
 Called when the ship teleported.
virtual void OnUpdate (ShipRefs r)
 Called when this camera is updated.
virtual void OnDeinit ()
 Called when the camera should clean up.
void SetupShipForInternalView (ShipRefs r)
 Configures the ship and camera for an internal view.
void SetupShipForCockpitView (ShipRefs r)
 Configures the ship and camera for a cockpit view.
void SetupShipForExternalView (ShipRefs r)
 Configures the ship and camera for an external view.

Public Attributes

ShipCamera CameraController
 The camera component that is controlling this module.
Transform T
 The camera transform.

Member Function Documentation

virtual void ShipCameraModule.OnChangedTo ( ShipRefs  r) [inline, virtual]
virtual void ShipCameraModule.OnDeinit ( ) [inline, virtual]

Called when the camera should clean up.

virtual void ShipCameraModule.OnInit ( ) [inline, virtual]

Called when this camera has been started.

Reimplemented in BallisticNG.ShipCameras.TrackChaseCamera.

virtual void ShipCameraModule.OnShipTeleported ( Vector3  oldPosition,
Quaternion  oldRotation,
ShipRefs  r 
) [inline, virtual]

Called when the ship teleported.

Reimplemented in BallisticNG.ShipCameras.ClassicChaseCamera, and BallisticNG.ShipCameras.ExternalCamera.

virtual void ShipCameraModule.OnUpdate ( ShipRefs  r) [inline, virtual]

Configures the ship and camera for a cockpit view.

Configures the ship and camera for an external view.

Parameters:
r

Configures the ship and camera for an internal view.


Member Data Documentation

The camera component that is controlling this module.

Transform ShipCameraModule.T

The camera transform.


The documentation for this class was generated from the following file: