private DynamicTreeTest() { _worldExtent = 15.0f; _proxyExtent = 0.5f; Rand.Random = new Random(888); for (int i = 0; i < ActorCount; ++i) { _actors[i] = new Actor(); Actor actor = _actors[i]; GetRandomAABB(out actor.AABB); int proxyId = _tree.AddProxy(ref actor.AABB); actor.ProxyId = proxyId; _tree.SetUserData(proxyId, actor); } float h = _worldExtent; _queryAABB.LowerBound = new Vector2(-3.0f, -4.0f + h); _queryAABB.UpperBound = new Vector2(5.0f, 6.0f + h); _rayCastInput.Point1 = new Vector2(-5.0f, 5.0f + h); _rayCastInput.Point2 = new Vector2(7.0f, -4.0f + h); //_rayCastInput.p1 = new Vector2(0.0f, 2.0f + h); //_rayCastInput.p2 = new Vector2(0.0f, -2.0f + h); _rayCastInput.MaxFraction = 1.0f; _automated = false; }