Ok I have read through the sparse documentation and looked through the demos and still don't know what I am doing wrong.
I have the following to try and set everything up:
GameWorld = new World(new Vector2(0, -4));
PlayerBody = BodyFactory.CreateRectangle(GameWorld, 24, 36, 0);
PlayerShape = new PolygonShape(PolygonTools.CreateRectangle(24, 36), 1);
PlayerBody.BodyType = BodyType.Dynamic;
PlayerBody.FixedRotation = true;
PlayerFixture = PlayerBody.CreateFixture(PlayerShape);
PlayerBody.Position = new Vector2(0, 0);
and then in my Update:
GamePlayer.X = PlayerFixture.Body.Position.X;
GamePlayer.Y = PlayerFixture.Body.Position.Y;
I tried PlayerFixture positions and PlayBody positions but each give nullreferenceexception. What am I forgetting to initialize?