Package mindustry.entities
Class EntityCollisions
java.lang.Object
mindustry.entities.EntityCollisions
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
collide
(float x1, float y1, float w1, float h1, float vx1, float vy1, float x2, float y2, float w2, float h2, float vx2, float vy2, arc.math.geom.Vec2 out) <T extends mindustry.gen.Hitboxc>
voidcollide
(EntityGroup<T> groupa) static boolean
legsSolid
(int x, int y) void
move
(mindustry.gen.Hitboxc entity, float deltax, float deltay) void
move
(mindustry.gen.Hitboxc entity, float deltax, float deltay, EntityCollisions.SolidPred solidCheck) void
moveCheck
(mindustry.gen.Hitboxc entity, float deltax, float deltay, EntityCollisions.SolidPred solidCheck) void
moveDelta
(mindustry.gen.Hitboxc entity, float deltax, float deltay, int r, boolean x, EntityCollisions.SolidPred solidCheck) boolean
overlapsTile
(arc.math.geom.Rect rect, EntityCollisions.SolidPred solidChecker) static boolean
solid
(int x, int y) <T extends mindustry.gen.Hitboxc>
voidupdatePhysics
(EntityGroup<T> group) static boolean
waterSolid
(int x, int y)
-
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(arc.math.geom.Rect rect, @Nullable EntityCollisions.SolidPred solidChecker) -
updatePhysics
-
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 static boolean collide(float x1, float y1, float w1, float h1, float vx1, float vy1, float x2, float y2, float w2, float h2, float vx2, float vy2, arc.math.geom.Vec2 out) -
collide
-