fixing bug where the hitbox won't change when actor is rescaled, wip issue #34

This commit is contained in:
minjaesong
2020-03-10 06:52:40 +09:00
parent 48b431f4b7
commit 7345a1015f
6 changed files with 59 additions and 40 deletions

View File

@@ -4,6 +4,7 @@ import net.torvald.terrarum.Terrarum
import net.torvald.terrarum.console.ConsoleCommand
import net.torvald.terrarum.console.Echo
import net.torvald.terrarum.console.EchoError
import net.torvald.terrarum.gameactors.AVKey
import net.torvald.terrarum.modulebasegame.TerrarumIngame
import net.torvald.terrarum.gameactors.ActorWBMovable
@@ -27,7 +28,8 @@ internal object SetScale : ConsoleCommand {
EchoError("Target is not ActorWBMovable")
}
else {
target.scale = scale
target.actorValue[AVKey.SCALE] = scale
//target.scale = scale
}
}
catch (e: NumberFormatException) {