mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-16 05:24:06 +09:00
code cleanup related to ActorWithPhysics
This commit is contained in:
@@ -80,7 +80,7 @@ class Hitbox(x1: Double, y1: Double, width: Double, height: Double) {
|
||||
fun setPositionX(x: Double) = setPosition(x, posY)
|
||||
fun setPositionY(y: Double) = setPosition(posX, y)
|
||||
|
||||
fun setPositionFromPoint(x1: Double, y1: Double): Hitbox {
|
||||
fun setPositionFromPointed(x1: Double, y1: Double): Hitbox {
|
||||
hitboxStart = Point2d(x1 - width / 2, y1 - height)
|
||||
return this
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user