C# Class TBOrbit, swip3

Inheritance: MonoBehaviour
Show file Open project: unit9/swip3 Class Usage Examples

Public Properties

Property Type Description
allowPanning bool
allowPinchZoom bool
clampPitchAngle bool
clampYawAngle bool
initialDistance float
invertPanningDirections bool
maxDistance float
maxPitch float
maxYaw float
minDistance float
minPitch float
minYaw float
panningPlane Transform
panningSensitivity float
pinchZoomSensitivity float
pitchSensitivity float
smoothMotion bool
smoothOrbitSpeed float
smoothPanning bool
smoothPanningSpeed float
smoothZoomSpeed float
target Transform
yawSensitivity float

Public Methods

Method Description
Apply ( ) : void
InstallGestureRecognizers ( ) : void
LateUpdate ( ) : void
OnDrag ( DragGesture gesture ) : void
OnPinch ( PinchGesture, gesture ) : void
OnTwoFingerDrag ( DragGesture gesture ) : void
ResetPanning ( ) : void
Start ( ) : void

Private Methods

Method Description
ClampAngle ( float angle, float min, float max ) : float

Method Details

Apply() public method

public Apply ( ) : void
return void

InstallGestureRecognizers() public method

public InstallGestureRecognizers ( ) : void
return void

LateUpdate() public method

public LateUpdate ( ) : void
return void

OnDrag() public method

public OnDrag ( DragGesture gesture ) : void
gesture DragGesture
return void

OnPinch() public method

public OnPinch ( PinchGesture, gesture ) : void
gesture PinchGesture,
return void

OnTwoFingerDrag() public method

public OnTwoFingerDrag ( DragGesture gesture ) : void
gesture DragGesture
return void

ResetPanning() public method

public ResetPanning ( ) : void
return void

Start() public method

public Start ( ) : void
return void

Property Details

allowPanning public property

Two-Finger camera panning. Panning will apply an offset to the pivot/camera target point
public bool allowPanning
return bool

allowPinchZoom public property

Allow the user to affect the orbit distance using the pinch zoom gesture
public bool allowPinchZoom
return bool

clampPitchAngle public property

Keep pitch angle value between minPitch and maxPitch?
public bool clampPitchAngle
return bool

clampYawAngle public property

Keep yaw angle value between minPitch and maxPitch?
public bool clampYawAngle
return bool

initialDistance public property

Initial camera distance to target
public float initialDistance
return float

invertPanningDirections public property

public bool invertPanningDirections
return bool

maxDistance public property

Maximum distance between camera and target
public float maxDistance
return float

maxPitch public property

public float maxPitch
return float

maxYaw public property

public float maxYaw
return float

minDistance public property

Minimum distance between camera and target
public float minDistance
return float

minPitch public property

public float minPitch
return float

minYaw public property

public float minYaw
return float

panningPlane public property

public Transform panningPlane
return Transform

panningSensitivity public property

public float panningSensitivity
return float

pinchZoomSensitivity public property

Affects pinch zoom speed
public float pinchZoomSensitivity
return float

pitchSensitivity public property

Affects vertical rotation speed
public float pitchSensitivity
return float

smoothMotion public property

Use smooth camera motions?
public bool smoothMotion
return bool

smoothOrbitSpeed public property

public float smoothOrbitSpeed
return float

smoothPanning public property

public bool smoothPanning
return bool

smoothPanningSpeed public property

public float smoothPanningSpeed
return float

smoothZoomSpeed public property

public float smoothZoomSpeed
return float

target public property

The object to orbit around
public Transform target
return Transform

yawSensitivity public property

Affects horizontal rotation speed
public float yawSensitivity
return float