Logo
 All Classes Files Functions Variables Enumerations
Public Attributes | List of all members
MouseAim Class Reference

Public Attributes

bool isActive = true
bool forceManualMode = true
float xSpeed = 0.05F
float ySpeed = 0.05F
float maxYAngle
float minYAngle
Vector3 newPosition

Detailed Description

This is a sample third person look controller

This implements a simple mouselook behavior using the manual mode of the dynamic camera. This must be attached to a dynamic camera to function.

Member Data Documentation

bool MouseAim.forceManualMode = true

Forces ManualAbsolute mode to be active

If true, this sets the dynamic camera to CameraMode.ManualAbsolute each update.

bool MouseAim.isActive = true

A switch to activate/deactivate

If set to true, the camera operates. If set to false, this script will cease to process mouse input until activated again

float MouseAim.maxYAngle

The maximum y angle possible.

This caps the maximum y angle of the camera, as an extreme y may result in unexpected behavior. This is in degrees.

float MouseAim.minYAngle

The minimum y angle possible.

This floors the minimum y angle of the camera, as an extreme y may result in unexpected behavior. This is in degrees.

Vector3 MouseAim.newPosition

The new position being assigned to the dynamic camera

This is reset each update, and is visible for debugging purposes

float MouseAim.xSpeed = 0.05F

The multiplier for x-axis mouse input

The higher this value is, the faster the x/z rotation

See Also
ySpeed
float MouseAim.ySpeed = 0.05F

The multiplier for y-axis mouse input

The higher this value is, the faster the y rotation

See Also
xSpeed

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