IBroadPhase.cs 784 B

123456789101112131415161718192021222324252627282930
  1. using System;
  2. using FarseerPhysics.Dynamics;
  3. using Microsoft.Xna.Framework;
  4. namespace FarseerPhysics.Collision
  5. {
  6. public interface IBroadPhase
  7. {
  8. int ProxyCount { get; }
  9. void UpdatePairs(BroadphaseDelegate callback);
  10. bool TestOverlap(int proxyIdA, int proxyIdB);
  11. int AddProxy(ref FixtureProxy proxy);
  12. void RemoveProxy(int proxyId);
  13. void MoveProxy(int proxyId, ref AABB aabb, Vector2 displacement);
  14. FixtureProxy GetProxy(int proxyId);
  15. void TouchProxy(int proxyId);
  16. void GetFatAABB(int proxyId, out AABB aabb);
  17. void Query(Func<int, bool> callback, ref AABB aabb);
  18. void RayCast(Func<RayCastInput, int, float> callback, ref RayCastInput input);
  19. }
  20. }