ICollisionBroadphase.cs 513 B

123456789101112131415161718192021
  1. using System;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. namespace DunGen.Collision
  5. {
  6. [Serializable]
  7. public abstract class BroadphaseSettings
  8. {
  9. public abstract ICollisionBroadphase Create();
  10. }
  11. public interface ICollisionBroadphase
  12. {
  13. void Init(BroadphaseSettings settings, DungeonGenerator dungeonGenerator);
  14. void Insert(Bounds bounds);
  15. void Remove(Bounds bounds);
  16. void Query(Bounds bounds, ref List<Bounds> results);
  17. void DrawDebug(float duration = 0f);
  18. }
  19. }