Свойство | Тип | Описание | |
---|---|---|---|
SimProjection | Matrix | ||
SimView | Matrix | ||
View | Matrix |
Метод | Описание | |
---|---|---|
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 ( |
Moves the camera forward one timestep.
|
Метод | Описание | |
---|---|---|
SetView ( ) : void |
public Camera2D ( GraphicsDevice graphics ) : System | ||
graphics | GraphicsDevice | |
Результат | System |
public ConvertScreenToWorld ( Vector2 location ) : Vector2 | ||
location | Vector2 | |
Результат | Vector2 |
public ConvertWorldToScreen ( Vector2 location ) : Vector2 | ||
location | Vector2 | |
Результат | Vector2 |
public MoveCamera ( Vector2 amount ) : void | ||
amount | Vector2 | |
Результат | void |
public RotateCamera ( float amount ) : void | ||
amount | float | |
Результат | void |
public Update ( |
||
gameTime | ||
Результат | void |