Updating changelog

Attempting to add center tracking of body
This commit is contained in:
Nathan Adams 2012-05-15 23:10:39 -05:00
parent b698503c75
commit 2786930250
2 changed files with 19 additions and 0 deletions

View File

@ -78,6 +78,7 @@
* - Modfying draw method in AxiosGameScreen to draw Gleed2D textures
* - Fixing path placement in Farseer
* - Moving base.draw to last in AxiosGameScreen to make sure Farseer debug information is visible
* - Removing old debugging code
*
*/

View File

@ -30,6 +30,24 @@ namespace FarseerPhysics.SamplesFramework
private Body _trackingBody;
private Vector2 _translateCenter;
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>
/// The constructor for the Camera2D class.