C# Class OrbitCamera, Poker

Inheritance: MonoBehaviour
Afficher le fichier Open project: BernhardGlueck/Poker Class Usage Examples

Méthodes publiques

Свойство Type Description
distance float
maxDistance float
maxDistanceSpeed float
minDistance float
minDistanceSpeed float
shiftKeyModifier float
speed float
target Transform
zoomSpeed float

Méthodes publiques

Méthode 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 méthode

Handles the orbiting
public LateUpdate ( ) : void
Résultat void

SetCamera() public méthode

Sets the camera position based on current attributes
public SetCamera ( ) : void
Résultat void

SetOrbitPoint() public méthode

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

SetOrbitPosition() public méthode

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
Résultat void

Setup() public méthode

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

Start() public méthode

Calls the setup method on startup
public Start ( ) : void
Résultat void

Property Details

distance public_oe property

The distance of the orbit from the target
public float distance
Résultat float

maxDistance public_oe property

The maximum amount the camera can Distance
public float maxDistance
Résultat float

maxDistanceSpeed public_oe property

The Distance speed when the camera is at its max Distance level
public float maxDistanceSpeed
Résultat float

minDistance public_oe property

The minimum amount a camera can Distance
public float minDistance
Résultat float

minDistanceSpeed public_oe property

The Distance speed when the camera is at its min Distance level
public float minDistanceSpeed
Résultat float

shiftKeyModifier public_oe property

Amount to increase speed of actions when shift is held down
public float shiftKeyModifier
Résultat float

speed public_oe property

The speed at which to orbit based on mouse input
public float speed
Résultat float

target public_oe property

The transform to orbit
public Transform target
Résultat Transform

zoomSpeed public_oe property

The zoom speed
public float zoomSpeed
Résultat float