C# Class Dwarrowdelf.Client.Camera

Mostra file Open project: tomba/dwarrowdelf Class Usage Examples

Public Methods

Method 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

Method Description
UpdateFrustum ( ) : void
UpdateProjection ( ) : void
UpdateScreenUp ( ) : void
UpdateView ( ) : void

Method Details

Camera() public method

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

Climb() public method

public Climb ( float d ) : void
d float
return void

LookAt() public method

public LookAt ( System.Vector3 pos, System.Vector3 target, System.Vector3 worldUp ) : void
pos System.Vector3
target System.Vector3
worldUp System.Vector3
return void

Move() public method

public Move ( System.Vector3 v ) : void
v System.Vector3
return void

MovePlanar() public method

public MovePlanar ( System.Vector3 v ) : void
v System.Vector3
return void

MoveTo() public method

public MoveTo ( System.Vector3 pos ) : void
pos System.Vector3
return void

Pitch() public method

public Pitch ( float angle ) : void
angle float
return void

PlanarAdjust() public method

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

RotateZ() public method

public RotateZ ( float angle ) : void
angle float
return void

SetAspect() public method

public SetAspect ( float aspect ) : void
aspect float
return void

SetLens() public method

public SetLens ( float fovY, float aspect, float zn, float zf ) : void
fovY float
aspect float
zn float
zf float
return void

Strafe() public method

public Strafe ( float d ) : void
d float
return void

Walk() public method

public Walk ( float d ) : void
d float
return void