C# Class Dwarrowdelf.Client.Camera

Afficher le fichier Open project: tomba/dwarrowdelf Class Usage Examples

Méthodes publiques

Méthode Description
Camera ( ) : System

Initialize in constructor anything that doesn't depend on other services.

Climb ( float d ) : void
LookAt ( System.Vector3 pos, System.Vector3 target, System.Vector3 worldUp ) : void
Move ( System.Vector3 v ) : void
MovePlanar ( System.Vector3 v ) : void
MoveTo ( System.Vector3 pos ) : void
Pitch ( float angle ) : void
PlanarAdjust ( IntVector2 v ) : IntVector2

Adjust the IntVector2 so that negative Y ("north") is towards the top of the screen

RotateZ ( float angle ) : void
SetAspect ( float aspect ) : void
SetLens ( float fovY, float aspect, float zn, float zf ) : void
Strafe ( float d ) : void
Walk ( float d ) : void

Private Methods

Méthode Description
UpdateFrustum ( ) : void
UpdateProjection ( ) : void
UpdateScreenUp ( ) : void
UpdateView ( ) : void

Method Details

Camera() public méthode

Initialize in constructor anything that doesn't depend on other services.
public Camera ( ) : System
Résultat System

Climb() public méthode

public Climb ( float d ) : void
d float
Résultat void

LookAt() public méthode

public LookAt ( System.Vector3 pos, System.Vector3 target, System.Vector3 worldUp ) : void
pos System.Vector3
target System.Vector3
worldUp System.Vector3
Résultat void

Move() public méthode

public Move ( System.Vector3 v ) : void
v System.Vector3
Résultat void

MovePlanar() public méthode

public MovePlanar ( System.Vector3 v ) : void
v System.Vector3
Résultat void

MoveTo() public méthode

public MoveTo ( System.Vector3 pos ) : void
pos System.Vector3
Résultat void

Pitch() public méthode

public Pitch ( float angle ) : void
angle float
Résultat void

PlanarAdjust() public méthode

Adjust the IntVector2 so that negative Y ("north") is towards the top of the screen
public PlanarAdjust ( IntVector2 v ) : IntVector2
v IntVector2
Résultat IntVector2

RotateZ() public méthode

public RotateZ ( float angle ) : void
angle float
Résultat void

SetAspect() public méthode

public SetAspect ( float aspect ) : void
aspect float
Résultat void

SetLens() public méthode

public SetLens ( float fovY, float aspect, float zn, float zf ) : void
fovY float
aspect float
zn float
zf float
Résultat void

Strafe() public méthode

public Strafe ( float d ) : void
d float
Résultat void

Walk() public méthode

public Walk ( float d ) : void
d float
Résultat void