C# 클래스 OrbitCamera, Poker

상속: MonoBehaviour
파일 보기 프로젝트 열기: BernhardGlueck/Poker 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
distance float
maxDistance float
maxDistanceSpeed float
minDistance float
minDistanceSpeed float
shiftKeyModifier float
speed float
target Transform
zoomSpeed float

공개 메소드들

메소드 설명
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

메소드 상세

LateUpdate() 공개 메소드

Handles the orbiting
public LateUpdate ( ) : void
리턴 void

SetCamera() 공개 메소드

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

SetOrbitPoint() 공개 메소드

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

SetOrbitPosition() 공개 메소드

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
리턴 void

Setup() 공개 메소드

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

Start() 공개 메소드

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

프로퍼티 상세

distance 공개적으로 프로퍼티

The distance of the orbit from the target
public float distance
리턴 float

maxDistance 공개적으로 프로퍼티

The maximum amount the camera can Distance
public float maxDistance
리턴 float

maxDistanceSpeed 공개적으로 프로퍼티

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

minDistance 공개적으로 프로퍼티

The minimum amount a camera can Distance
public float minDistance
리턴 float

minDistanceSpeed 공개적으로 프로퍼티

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

shiftKeyModifier 공개적으로 프로퍼티

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

speed 공개적으로 프로퍼티

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

target 공개적으로 프로퍼티

The transform to orbit
public Transform target
리턴 Transform

zoomSpeed 공개적으로 프로퍼티

The zoom speed
public float zoomSpeed
리턴 float