C# Class Indiefreaks.Xna.Rendering.Camera.TargetCamera3D

A simple static camera that can be placed anywhere in the world using its StaticPosition and Target position
Inheritance: Camera3D
Mostrar archivo Open project: Indiefreaks/igf

Public Methods

Method Description
TargetCamera3D ( float aspectRatio, float fieldOfView, float nearPlaneDistance, float farPlaneDistance ) : Indiefreaks.Xna.Input

Creates a new instance of the camera

Protected Methods

Method Description
UpdateInput ( InputManager input ) : void

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

UpdateViewMatrix ( GameTime gameTime ) : Matrix

Override this method to update the ViewMatrix property

Method Details

TargetCamera3D() public method

Creates a new instance of the camera
public TargetCamera3D ( float aspectRatio, float fieldOfView, float nearPlaneDistance, float farPlaneDistance ) : Indiefreaks.Xna.Input
aspectRatio float
fieldOfView float
nearPlaneDistance float
farPlaneDistance float
return Indiefreaks.Xna.Input

UpdateInput() protected method

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

UpdateViewMatrix() protected method

Override this method to update the ViewMatrix property
protected UpdateViewMatrix ( GameTime gameTime ) : Matrix
gameTime Microsoft.Xna.Framework.GameTime
return Microsoft.Xna.Framework.Matrix