C# Class ProjectStorms.RotateCam

This script takes input from the input manager, and passes the movement into an empty game object with an attached camera. Most of this script was derived from the Unity Example for transform.rotate.
Inheritance: UnityEngine.MonoBehaviour
Show file Open project: patferguson/Storms-Project Class Usage Examples

Public Properties

Property Type Description
announcerController UI_Controller
camDistanceFactor float
camPositionFactor float
camProxyTarget UnityEngine.GameObject
camResetMoveSpeed float
camTurnSpeed float
cannons UnityEngine.GameObject[]
frontCannon CannonFire
horizontalTiltAnglePerc float
invertLeftRight bool
invertUpDown bool
lookyHereTarget UnityEngine.GameObject
movingCamResetTime float
rotateCam UnityEngine.GameObject
smooth float
targetHeightFactor float
verticalTiltAnglePerc float

Public Methods

Method Description
PlayerInputs ( float a_camVertical, float a_camHorizontal, float a_triggerAxis, bool a_faceDown, bool a_leftBumper, bool a_rightBumper, bool a_leftClick, bool a_rightClick, bool a_select ) : void
ResetCamRotation ( bool a_snap ) : void
Start ( ) : void
Update ( ) : void

Method Details

PlayerInputs() public method

public PlayerInputs ( float a_camVertical, float a_camHorizontal, float a_triggerAxis, bool a_faceDown, bool a_leftBumper, bool a_rightBumper, bool a_leftClick, bool a_rightClick, bool a_select ) : void
a_camVertical float
a_camHorizontal float
a_triggerAxis float
a_faceDown bool
a_leftBumper bool
a_rightBumper bool
a_leftClick bool
a_rightClick bool
a_select bool
return void

ResetCamRotation() public method

public ResetCamRotation ( bool a_snap ) : void
a_snap bool
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

announcerController public property

public UI_Controller,ProjectStorms announcerController
return UI_Controller

camDistanceFactor public property

public float camDistanceFactor
return float

camPositionFactor public property

public float camPositionFactor
return float

camProxyTarget public property

public GameObject,UnityEngine camProxyTarget
return UnityEngine.GameObject

camResetMoveSpeed public property

Lerp speed for resetting the camera
public float camResetMoveSpeed
return float

camTurnSpeed public property

public float camTurnSpeed
return float

cannons public property

public GameObject[],UnityEngine cannons
return UnityEngine.GameObject[]

frontCannon public property

public CannonFire,ProjectStorms frontCannon
return CannonFire

horizontalTiltAnglePerc public property

public float horizontalTiltAnglePerc
return float

invertLeftRight public property

public bool invertLeftRight
return bool

invertUpDown public property

public bool invertUpDown
return bool

lookyHereTarget public property

public GameObject,UnityEngine lookyHereTarget
return UnityEngine.GameObject

movingCamResetTime public property

Time to wait before beginning to interp the camera back when moving,
public float movingCamResetTime
return float

rotateCam public property

public GameObject,UnityEngine rotateCam
return UnityEngine.GameObject

smooth public property

public float smooth
return float

targetHeightFactor public property

public float targetHeightFactor
return float

verticalTiltAnglePerc public property

public float verticalTiltAnglePerc
return float