Package ecs

Class CollisionHandlers

java.lang.Object
ecs.CollisionHandlers

public class CollisionHandlers extends Object
Since:
07.12.2021
Author:
Juyas
  • Constructor Details

    • CollisionHandlers

      public CollisionHandlers()
  • Method Details

    • unpassablePolygonCollider

      public static CollisionHandler unpassablePolygonCollider(PolygonCollider collider)
      A CollisionHandler for a PolygonCollider that should not pass through other colliders. Can be thought of as making the collider a solid object.
      Parameters:
      collider - the collider to attach the handler to
      Returns:
      the CollisionHandler to be attached to the gameObject holding the collider