C# Class FarseerPhysics.Samples.ScreenSystem.Camera2D

Show file Open project: tinco/Farseer-Physics Class Usage Examples

Public Properties

Property Type Description
SimProjection Matrix
SimView Matrix
View Matrix

Public Methods

Method Description
Camera2D ( GraphicsDevice graphics ) : System

The constructor for the Camera2D class.

ConvertScreenToWorld ( Vector2 location ) : Vector2
ConvertWorldToScreen ( Vector2 location ) : Vector2
Jump2Target ( ) : void
MoveCamera ( Vector2 amount ) : void
ResetCamera ( ) : void

Resets the camera to default values.

RotateCamera ( float amount ) : void
Update ( GameTime gameTime ) : void

Moves the camera forward one timestep.

Private Methods

Method Description
SetView ( ) : void

Method Details

Camera2D() public method

The constructor for the Camera2D class.
public Camera2D ( GraphicsDevice graphics ) : System
graphics GraphicsDevice
return System

ConvertScreenToWorld() public method

public ConvertScreenToWorld ( Vector2 location ) : Vector2
location Vector2
return Vector2

ConvertWorldToScreen() public method

public ConvertWorldToScreen ( Vector2 location ) : Vector2
location Vector2
return Vector2

Jump2Target() public method

public Jump2Target ( ) : void
return void

MoveCamera() public method

public MoveCamera ( Vector2 amount ) : void
amount Vector2
return void

ResetCamera() public method

Resets the camera to default values.
public ResetCamera ( ) : void
return void

RotateCamera() public method

public RotateCamera ( float amount ) : void
amount float
return void

Update() public method

Moves the camera forward one timestep.
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

Property Details

SimProjection public property

public Matrix SimProjection
return Matrix

SimView public property

public Matrix SimView
return Matrix

View public property

public Matrix View
return Matrix