Class CollisionManager

java.lang.Object
ActiverseEngine.CollisionManager

public class CollisionManager extends Object
Manages collision detection between actors in the world. This class provides a method to check if two actors intersect.
Version:
1.4.0
Author:
Knivier
  • Constructor Details

    • CollisionManager

      public CollisionManager()
  • Method Details

    • intersects

      public static boolean intersects(Actor a, Actor b)
      Checks if two actors intersect using pixel-perfect collision detection.
      Parameters:
      a - The first actor.
      b - The second actor.
      Returns:
      true if the non-transparent pixels of the two actors overlap, false otherwise.