C# 클래스 Indiefreaks.Xna.Rendering.Camera.ChaseCamera3D

상속: Camera3D
파일 보기 프로젝트 열기: Indiefreaks/igf

공개 메소드들

메소드 설명
ChaseCamera3D ( float aspectRatio, float fieldOfView, float nearPlaneDistance, float farPlaneDistance ) : System

Creates a new instance of the camera

Reset ( ) : void

Forces camera to be at desired position and to stop moving. The is useful when the chased object is first created or after it has been teleported. Failing to call this after a large change to the chased object's position will result in the camera quickly flying across the world.

보호된 메소드들

메소드 설명
UpdateInput ( InputManager input ) : void

Override this method to catch input events and act on the camera

UpdateViewMatrix ( GameTime gameTime ) : Matrix

Animates the camera from its current position towards the desired offset behind the chased object. The camera's animation is controlled by a simple physical spring attached to the camera and anchored to the desired position.

비공개 메소드들

메소드 설명
UpdateMatrices ( ) : Matrix

Rebuilds camera's view and projection matricies.

UpdateWorldPositions ( ) : void

Rebuilds object space values in world space. Invoke before publicly returning or privately accessing world space values.

메소드 상세

ChaseCamera3D() 공개 메소드

Creates a new instance of the camera
public ChaseCamera3D ( float aspectRatio, float fieldOfView, float nearPlaneDistance, float farPlaneDistance ) : System
aspectRatio float
fieldOfView float
nearPlaneDistance float
farPlaneDistance float
리턴 System

Reset() 공개 메소드

Forces camera to be at desired position and to stop moving. The is useful when the chased object is first created or after it has been teleported. Failing to call this after a large change to the chased object's position will result in the camera quickly flying across the world.
public Reset ( ) : void
리턴 void

UpdateInput() 보호된 메소드

Override this method to catch input events and act on the camera
protected UpdateInput ( InputManager input ) : void
input InputManager The current input instance
리턴 void

UpdateViewMatrix() 보호된 메소드

Animates the camera from its current position towards the desired offset behind the chased object. The camera's animation is controlled by a simple physical spring attached to the camera and anchored to the desired position.
protected UpdateViewMatrix ( GameTime gameTime ) : Matrix
gameTime Microsoft.Xna.Framework.GameTime
리턴 Matrix