C# Class MyGame.FreeCamera

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

Méthodes publiques

Свойство Type Description
terrain Terrain

Méthodes publiques

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

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
Résultat System

Move() public méthode

public Move ( Vector3 Translation ) : void
Translation Vector3
Résultat void

Rotate() public méthode

public Rotate ( float YawChange, float PitchChange ) : void
YawChange float
PitchChange float
Résultat void

Update() public méthode

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

Property Details

terrain public_oe property

public Terrain,MyGame terrain
Résultat Terrain