Skip to content
Snippets Groups Projects
Commit cf0c6b55 authored by koz01's avatar koz01
Browse files

Fix collision modle

parent db1f883e
No related merge requests found
......@@ -75,7 +75,7 @@ public class BulletAnimated implements DrawableSimulable, Collisionable{
}
public Rectangle2D getBoundingBox() {
return new Rectangle2D(position.getX(), position.getY(), size, size);
return new Rectangle2D(position.getX(), position.getY() - size, size, size);
}
public boolean overlaps(Dragon dragon) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment