private ContinuousTest() { List <Vertices> list = new List <Vertices>(); list.Add(PolygonTools.CreateLine(new Vector2(-10.0f, 0.0f), new Vector2(10.0f, 0.0f))); list.Add(PolygonTools.CreateRectangle(0.2f, 1.0f, new Vector2(0.5f, 1.0f), 0)); _ground = BodyFactory.CreateCompoundPolygon(World, list, 0); _box = BodyFactory.CreateRectangle(World, 4, 0.2f, 1); _box.Position = new Vector2(0, 20); _box.BodyType = BodyType.Dynamic; //_box.Body.Rotation = 0.1f; //_angularVelocity = 46.661274f; _angularVelocity = Rand.RandomFloat(-50.0f, 50.0f); _box.LinearVelocity = new Vector2(0.0f, -100.0f); _box.AngularVelocity = _angularVelocity; Distance.GJKCalls = 0; Distance.GJKIters = 0; Distance.GJKMaxIters = 0; TimeOfImpact.TOICalls = 0; TimeOfImpact.TOIIters = 0; TimeOfImpact.TOIRootIters = 0; TimeOfImpact.TOIMaxRootIters = 0; }