Property | Type | Description | |
---|---|---|---|
distance | float | ||
maxDistance | float | ||
maxDistanceSpeed | float | ||
minDistance | float | ||
minDistanceSpeed | float | ||
shiftKeyModifier | float | ||
speed | float | ||
target | Transform | ||
zoomSpeed | float |
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
|
public SetOrbitPoint ( float xAngle, float yAngle, float distance ) : void | ||
xAngle | float | |
yAngle | float | |
distance | float | |
return | void |
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 |