Hey, I know I'm totaly noobing it up right now, but I can't the Angle Joint to work.
I declared these first:
Then I put this in Load Content:
physicsSimulator = new PhysicsSimulator(new Vector2(0, 600));
legTexture = Content.Load<Texture2D>(@"Images\leg100,10");
leg1Body = BodyFactory.Instance.CreateRectangleBody(
leg1Geom = GeomFactory.Instance.CreateRectangleGeom(
leg2Body = BodyFactory.Instance.CreateRectangleBody(
leg2Geom = GeomFactory.Instance.CreateRectangleGeom(
leg1Body.Position = new Vector2(200, 200);
leg2Body.Position = new Vector2(300, 200);
legJoint = JointFactory.Instance.CreateAngleJoint(
In the update method I just tell the leg2Body to rotate, then I go ahead and draw them in the Draw method.
For one neither of them fall off the screen like I realised they should be doing after a little while, and leg1 doesnt seem to be connected to the other.
I tried looking in the manual, but I couldn't really understand it.