Space Engineers
Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Protected Attributes | Properties | List of all members
VRage.MySpectator Class Reference

Public Member Functions

 MySpectator ()
 
void SetTarget (Vector3D target, Vector3D?up)
 
void UpdateOrientation ()
 
void Rotate (Vector2 rotationIndicator, float rollIndicator)
 
void RotateStopped ()
 
virtual void MoveAndRotate (Vector3 moveIndicator, Vector2 rotationIndicator, float rollIndicator)
 
virtual void Update ()
 
virtual void MoveAndRotateStopped ()
 
MatrixD GetViewMatrix ()
 
void SetViewMatrix (MatrixD viewMatrix)
 
void Reset ()
 

Public Attributes

const float DEFAULT_SPECTATOR_LINEAR_SPEED = 0.1f
 
const float MIN_SPECTATOR_LINEAR_SPEED = 0.0001f
 
const float MAX_SPECTATOR_LINEAR_SPEED = 8000.0f
 
const float DEFAULT_SPECTATOR_ANGULAR_SPEED = 1f
 
const float MIN_SPECTATOR_ANGULAR_SPEED = 0.0001f
 
const float MAX_SPECTATOR_ANGULAR_SPEED = 6.0f
 
Vector3D ThirdPersonCameraDelta = new Vector3D(-10, 10, -10)
 

Static Public Attributes

static MySpectator Static
 

Protected Member Functions

virtual void OnChangingMode (MySpectatorCameraMovementEnum oldMode, MySpectatorCameraMovementEnum newMode)
 

Protected Attributes

float m_speedModeLinear = DEFAULT_SPECTATOR_LINEAR_SPEED
 
float m_speedModeAngular = DEFAULT_SPECTATOR_ANGULAR_SPEED
 
MatrixD m_orientation = MatrixD.Identity
 
bool m_orientationDirty = true
 

Properties

MySpectatorCameraMovementEnum SpectatorCameraMovement [get, set]
 
bool IsInFirstPersonView [get, set]
 
bool ForceFirstPersonCamera [get, set]
 
Vector3D Position [get, set]
 
float SpeedModeLinear [get, set]
 
float SpeedModeAngular [get, set]
 
Vector3D Target [get, set]
 
MatrixD Orientation [get]
 

Detailed Description

Definition at line 17 of file MySpectator.cs.

Constructor & Destructor Documentation

VRage.MySpectator.MySpectator ( )
inline

Definition at line 51 of file MySpectator.cs.

Member Function Documentation

MatrixD VRage.MySpectator.GetViewMatrix ( )
inline

Definition at line 261 of file MySpectator.cs.

virtual void VRage.MySpectator.MoveAndRotate ( Vector3  moveIndicator,
Vector2  rotationIndicator,
float  rollIndicator 
)
inlinevirtual

Definition at line 151 of file MySpectator.cs.

virtual void VRage.MySpectator.MoveAndRotateStopped ( )
inlinevirtual

Definition at line 257 of file MySpectator.cs.

virtual void VRage.MySpectator.OnChangingMode ( MySpectatorCameraMovementEnum  oldMode,
MySpectatorCameraMovementEnum  newMode 
)
inlineprotectedvirtual

Definition at line 43 of file MySpectator.cs.

void VRage.MySpectator.Reset ( )
inline

Definition at line 279 of file MySpectator.cs.

void VRage.MySpectator.Rotate ( Vector2  rotationIndicator,
float  rollIndicator 
)
inline

Definition at line 136 of file MySpectator.cs.

void VRage.MySpectator.RotateStopped ( )
inline

Definition at line 141 of file MySpectator.cs.

void VRage.MySpectator.SetTarget ( Vector3D  target,
Vector3D up 
)
inline

Definition at line 106 of file MySpectator.cs.

void VRage.MySpectator.SetViewMatrix ( MatrixD  viewMatrix)
inline

Definition at line 266 of file MySpectator.cs.

virtual void VRage.MySpectator.Update ( )
inlinevirtual

Definition at line 252 of file MySpectator.cs.

void VRage.MySpectator.UpdateOrientation ( )
inline

Definition at line 113 of file MySpectator.cs.

Member Data Documentation

const float VRage.MySpectator.DEFAULT_SPECTATOR_ANGULAR_SPEED = 1f

Definition at line 25 of file MySpectator.cs.

const float VRage.MySpectator.DEFAULT_SPECTATOR_LINEAR_SPEED = 0.1f

Definition at line 21 of file MySpectator.cs.

MatrixD VRage.MySpectator.m_orientation = MatrixD.Identity
protected

Definition at line 86 of file MySpectator.cs.

bool VRage.MySpectator.m_orientationDirty = true
protected

Definition at line 87 of file MySpectator.cs.

float VRage.MySpectator.m_speedModeAngular = DEFAULT_SPECTATOR_ANGULAR_SPEED
protected

Definition at line 84 of file MySpectator.cs.

float VRage.MySpectator.m_speedModeLinear = DEFAULT_SPECTATOR_LINEAR_SPEED
protected

Definition at line 83 of file MySpectator.cs.

const float VRage.MySpectator.MAX_SPECTATOR_ANGULAR_SPEED = 6.0f

Definition at line 27 of file MySpectator.cs.

const float VRage.MySpectator.MAX_SPECTATOR_LINEAR_SPEED = 8000.0f

Definition at line 23 of file MySpectator.cs.

const float VRage.MySpectator.MIN_SPECTATOR_ANGULAR_SPEED = 0.0001f

Definition at line 26 of file MySpectator.cs.

const float VRage.MySpectator.MIN_SPECTATOR_LINEAR_SPEED = 0.0001f

Definition at line 22 of file MySpectator.cs.

MySpectator VRage.MySpectator.Static
static

Definition at line 19 of file MySpectator.cs.

Vector3D VRage.MySpectator.ThirdPersonCameraDelta = new Vector3D(-10, 10, -10)

Definition at line 29 of file MySpectator.cs.

Property Documentation

bool VRage.MySpectator.ForceFirstPersonCamera
getset

Definition at line 48 of file MySpectator.cs.

bool VRage.MySpectator.IsInFirstPersonView
getset

Definition at line 47 of file MySpectator.cs.

MatrixD VRage.MySpectator.Orientation
get

Definition at line 123 of file MySpectator.cs.

Vector3D VRage.MySpectator.Position
getset

Definition at line 62 of file MySpectator.cs.

MySpectatorCameraMovementEnum VRage.MySpectator.SpectatorCameraMovement
getset

Definition at line 32 of file MySpectator.cs.

float VRage.MySpectator.SpeedModeAngular
getset

Definition at line 78 of file MySpectator.cs.

float VRage.MySpectator.SpeedModeLinear
getset

Definition at line 72 of file MySpectator.cs.

Vector3D VRage.MySpectator.Target
getset

Definition at line 92 of file MySpectator.cs.


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