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

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

Méthodes publiques

Méthode Description
FreeCamera3D ( float aspectRatio, float fieldOfView, float nearPlaneDistance, float farPlaneDistance ) : Indiefreaks.Xna.Input

Creates a new Free Camera

Méthodes protégées

Méthode 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

Méthode Description
MoveCamera ( Microsoft.Xna.Framework.Vector3 addedVector ) : void

Moves the camera

Method Details

FreeCamera3D() public méthode

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
Résultat Indiefreaks.Xna.Input

UpdateInput() protected méthode

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

UpdateViewMatrix() protected méthode

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