C# 클래스 Nez.CameraShake

상속: Component, IUpdatable
파일 보기 프로젝트 열기: prime31/Nez

공개 메소드들

메소드 설명
shake ( float shakeIntensity = 15f, float shakeDegredation = 0.9f, Vector2 shakeDirection = default(Vector2) ) : void

if the shake is already running this will overwrite the current values only if shakeIntensity > the current shakeIntensity. if the shake is not currently active it will be started.

비공개 메소드들

메소드 설명
IUpdatable ( ) : void

메소드 상세

shake() 공개 메소드

if the shake is already running this will overwrite the current values only if shakeIntensity > the current shakeIntensity. if the shake is not currently active it will be started.
public shake ( float shakeIntensity = 15f, float shakeDegredation = 0.9f, Vector2 shakeDirection = default(Vector2) ) : void
shakeIntensity float how much should we shake it
shakeDegredation float higher values cause faster degradation
shakeDirection Vector2 Vector3.zero will result in a shake on just the x/y axis. any other values will result in the passed /// in shakeDirection * intensity being the offset the camera is moved
리턴 void