C# Class OrbitCamera, Poker

Inheritance: MonoBehaviour
ファイルを表示 Open project: BernhardGlueck/Poker Class Usage Examples

Public Properties

Property Type Description
distance float
maxDistance float
maxDistanceSpeed float
minDistance float
minDistanceSpeed float
shiftKeyModifier float
speed float
target Transform
zoomSpeed float

Public Methods

Method Description
LateUpdate ( ) : void

Handles the orbiting

SetCamera ( ) : void

Sets the camera position based on current attributes

SetOrbitPoint ( float xAngle, float yAngle, float distance ) : void

Sets the angles and distance for the object

SetOrbitPosition ( Vector3 position, Vector3 up ) : void

Sets the orbit camera to a particular position and has it look at the target using the given up axis

Setup ( ) : void

Sets the script up with the current transform's angles

Start ( ) : void

Calls the setup method on startup

Method Details

LateUpdate() public method

Handles the orbiting
public LateUpdate ( ) : void
return void

SetCamera() public method

Sets the camera position based on current attributes
public SetCamera ( ) : void
return void

SetOrbitPoint() public method

Sets the angles and distance for the object
public SetOrbitPoint ( float xAngle, float yAngle, float distance ) : void
xAngle float
yAngle float
distance float
return void

SetOrbitPosition() public method

Sets the orbit camera to a particular position and has it look at the target using the given up axis
public SetOrbitPosition ( Vector3 position, Vector3 up ) : void
position Vector3 The position to set the camera to
up Vector3 The axis to use at the 'up axis' when looking at the target
return void

Setup() public method

Sets the script up with the current transform's angles
public Setup ( ) : void
return void

Start() public method

Calls the setup method on startup
public Start ( ) : void
return void

Property Details

distance public_oe property

The distance of the orbit from the target
public float distance
return float

maxDistance public_oe property

The maximum amount the camera can Distance
public float maxDistance
return float

maxDistanceSpeed public_oe property

The Distance speed when the camera is at its max Distance level
public float maxDistanceSpeed
return float

minDistance public_oe property

The minimum amount a camera can Distance
public float minDistance
return float

minDistanceSpeed public_oe property

The Distance speed when the camera is at its min Distance level
public float minDistanceSpeed
return float

shiftKeyModifier public_oe property

Amount to increase speed of actions when shift is held down
public float shiftKeyModifier
return float

speed public_oe property

The speed at which to orbit based on mouse input
public float speed
return float

target public_oe property

The transform to orbit
public Transform target
return Transform

zoomSpeed public_oe property

The zoom speed
public float zoomSpeed
return float