C# Class TBOrbit, swip3

Inheritance: MonoBehaviour
Exibir arquivo 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_oe property

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

allowPinchZoom public_oe property

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

clampPitchAngle public_oe property

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

clampYawAngle public_oe property

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

initialDistance public_oe property

Initial camera distance to target
public float initialDistance
return float

invertPanningDirections public_oe property

public bool invertPanningDirections
return bool

maxDistance public_oe property

Maximum distance between camera and target
public float maxDistance
return float

maxPitch public_oe property

public float maxPitch
return float

maxYaw public_oe property

public float maxYaw
return float

minDistance public_oe property

Minimum distance between camera and target
public float minDistance
return float

minPitch public_oe property

public float minPitch
return float

minYaw public_oe property

public float minYaw
return float

panningPlane public_oe property

public Transform panningPlane
return Transform

panningSensitivity public_oe property

public float panningSensitivity
return float

pinchZoomSensitivity public_oe property

Affects pinch zoom speed
public float pinchZoomSensitivity
return float

pitchSensitivity public_oe property

Affects vertical rotation speed
public float pitchSensitivity
return float

smoothMotion public_oe property

Use smooth camera motions?
public bool smoothMotion
return bool

smoothOrbitSpeed public_oe property

public float smoothOrbitSpeed
return float

smoothPanning public_oe property

public bool smoothPanning
return bool

smoothPanningSpeed public_oe property

public float smoothPanningSpeed
return float

smoothZoomSpeed public_oe property

public float smoothZoomSpeed
return float

target public_oe property

The object to orbit around
public Transform target
return Transform

yawSensitivity public_oe property

Affects horizontal rotation speed
public float yawSensitivity
return float