Class EntityCollisions

java.lang.Object
mindustry.entities.EntityCollisions

public class EntityCollisions extends Object
  • Constructor Details

    • EntityCollisions

      public EntityCollisions()
  • Method Details

    • moveCheck

      public void moveCheck(mindustry.gen.Hitboxc entity, float deltax, float deltay, EntityCollisions.SolidPred solidCheck)
    • move

      public void move(mindustry.gen.Hitboxc entity, float deltax, float deltay)
    • move

      public void move(mindustry.gen.Hitboxc entity, float deltax, float deltay, EntityCollisions.SolidPred solidCheck)
    • moveDelta

      public void moveDelta(mindustry.gen.Hitboxc entity, float deltax, float deltay, int r, boolean x, EntityCollisions.SolidPred solidCheck)
    • overlapsTile

      public boolean overlapsTile(Rect rect, @Nullable EntityCollisions.SolidPred solidChecker)
    • updatePhysics

      public <T extends mindustry.gen.Hitboxc> void updatePhysics(EntityGroup<T> group)
    • legsSolid

      public static boolean legsSolid(int x, int y)
    • waterSolid

      public static boolean waterSolid(int x, int y)
    • solid

      public static boolean solid(int x, int y)
    • collide

      public <T extends mindustry.gen.Hitboxc> void collide(EntityGroup<T> groupa)