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

Implements a free 3d camera controlled by LogicalPlayerIndex.PlayerOne game pad
Inheritance: Camera3D
Exibir arquivo Open project: Indiefreaks/igf

Public Methods

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

Creates a new Free 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

Private Methods

Method Description
MoveCamera ( Microsoft.Xna.Framework.Vector3 addedVector ) : void

Moves the camera

Method Details

FreeCamera3D() public method

Creates a new Free Camera
public FreeCamera3D ( float aspectRatio, float fieldOfView, float nearPlaneDistance, float farPlaneDistance ) : Indiefreaks.Xna.Input
aspectRatio float The aspect ratio is generally defined by the Viewport's Aspect ratio found in the GraphicsDevice instance of the game
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