Farseer ライブラリは初めてで、Farseer を使用して C# フォーム アプリケーションを作成しようとしています。フォームを作成し、フォームに床を配置し、フォームの上部から下部に単一の長方形をドロップしています。ブロックは落下するように見えますが、重力によって加速しません。それは私が設定していないものだと確信していますが、私の人生ではそれを理解することができず、誰かが私を正しい方向に向けてくれることを望んでいました.
助けてくれてありがとう、
ジェフ
==============================重要なコード================= ===============
World world = new World(new Vector2(0.0f, 0.1f));
//Floor
Body floor = BodyFactory.CreateRectangle(world, 10000.0f, 30.0f, 100, new Vector2(0.0f, Height));
floor.BodyType = BodyType.Static;
// Block
Body Block1 = BodyFactory.CreateRectangle(world, 100.0f, 10.0f, 100, new Vector2(Width/2, 0));
Block1.BodyType = BodyType.Dynamic;
//(The step here is called when I timer goes off every .01/second)
//Step the world a 10th of a second.
world.Step((float).01f);
//(I draw the object this way)
gr.TranslateTransform(body.Position.X, body.Position.Y);
gr.RotateTransform((float)((body.Rotation *360)/(2*Math.PI)));
gr.FillRectangle(SystemBrushes.ButtonFace, -size.Width / 2.0f, -size.Height / 2.0f, size.Width, size.Height);
gr.ResetTransform();