Nov 8, 2012 at 8:17 AM
Edited Nov 8, 2012 at 10:46 AM
Hi guys, I was wondering if someone could explain me or provide an example on how to use the QuadTree classes included in FarseerPhysics
I will try to be more specific.
The fact is that both QuadTreeBroadphase and DynamicTreeBroadphase implements the interface IBroadphase.
This interface has three main methods (I think) which are void UpdatePairs(BroadphaseDelegate callback); void MoveProxy(int proxyId, ref AABB aabb, Vector2 displacement); void Query(Func<int, bool> callback, ref AABB aabb);
What I'd like to know from you is what these methods actually do, what I've understood is that UpdatePairs perform some collision detection among objects and for each collision detected it calls the callback, instead Query just check for collision between
the aabb and the other objects.
The move method moves the aabb and its proxyfixture to displacement and should adjust my aabb to fit the new location.
Is it correct ?
Thanks a lot for the help and sorry for my bad English, regards.