C# Class MyGame.FreeCamera

This class represent a Free Camera that move and rotate freely
Inheritance: Camera
Show file Open project: mahmoudbahaa/XNA-Game-project

Public Properties

Property Type Description
terrain Terrain

Public Methods

Method Description
FreeCamera ( MyGame game, Vector3 Position, float Yaw, float Pitch, float minHeight, float maxHeight ) : System
Move ( Vector3 Translation ) : void
Rotate ( float YawChange, float PitchChange ) : void
Update ( GameTime gameTime ) : void

Allows the component to run logic.

Method Details

FreeCamera() public method

public FreeCamera ( MyGame game, Vector3 Position, float Yaw, float Pitch, float minHeight, float maxHeight ) : System
game MyGame
Position Vector3
Yaw float
Pitch float
minHeight float
maxHeight float
return System

Move() public method

public Move ( Vector3 Translation ) : void
Translation Vector3
return void

Rotate() public method

public Rotate ( float YawChange, float PitchChange ) : void
YawChange float
PitchChange float
return void

Update() public method

Allows the component to run logic.
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime The gametime.
return void

Property Details

terrain public property

public Terrain,MyGame terrain
return Terrain