Updating changelog
Attempting to add center tracking of body
This commit is contained in:
parent
b698503c75
commit
2786930250
@ -78,6 +78,7 @@
|
|||||||
* - Modfying draw method in AxiosGameScreen to draw Gleed2D textures
|
* - Modfying draw method in AxiosGameScreen to draw Gleed2D textures
|
||||||
* - Fixing path placement in Farseer
|
* - Fixing path placement in Farseer
|
||||||
* - Moving base.draw to last in AxiosGameScreen to make sure Farseer debug information is visible
|
* - Moving base.draw to last in AxiosGameScreen to make sure Farseer debug information is visible
|
||||||
|
* - Removing old debugging code
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -31,6 +31,24 @@ namespace FarseerPhysics.SamplesFramework
|
|||||||
private Vector2 _translateCenter;
|
private Vector2 _translateCenter;
|
||||||
private Matrix _view;
|
private Matrix _view;
|
||||||
|
|
||||||
|
/*private Vector2 _viewCenter;
|
||||||
|
|
||||||
|
public Vector2 ViewCenter
|
||||||
|
{
|
||||||
|
get { return ConvertUnits.ToSimUnits(_viewCenter); }
|
||||||
|
set
|
||||||
|
{
|
||||||
|
_translateCenter = ConvertUnits.ToDisplayUnits(value);
|
||||||
|
Resize();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private void Resize()
|
||||||
|
{
|
||||||
|
_batchView = Matrix.CreateTranslation(new Vector3(-ViewCenter.X, -ViewCenter.Y, 0)) * Matrix.CreateScale(Zoom);
|
||||||
|
}*/
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The constructor for the Camera2D class.
|
/// The constructor for the Camera2D class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user