Save actual Rectengle Hitbox Data
This commit is contained in:
@ -108,7 +108,10 @@ public class HitboxRectangle extends Hitbox {
|
||||
bottomPoint.y=currentPoint.y;
|
||||
}
|
||||
}
|
||||
referencePoint.x = bottomPoint.x-owner.getImage().getWidth()/2;
|
||||
referencePoint.y = bottomPoint.y-owner.getImage().getHeight();
|
||||
bottomPoint = isometricToCartesian(bottomPoint.x,bottomPoint.y,bottomPoint);
|
||||
Point cartesianCenterImagePoint= new Point(0,0);
|
||||
cartesianCenterImagePoint = isometricToCartesian(owner.getImage().getWidth()/2,owner.getImage().getHeight(),cartesianCenterImagePoint);
|
||||
referencePoint.x = cartesianCenterImagePoint.x-bottomPoint.x;
|
||||
referencePoint.y = cartesianCenterImagePoint.y-bottomPoint.y;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user