phys arguments are now single PhysProperties object

This commit is contained in:
minjaesong
2020-07-15 21:58:44 +09:00
parent d89e0d30da
commit c0db310a66
16 changed files with 60 additions and 22 deletions

View File

@@ -35,7 +35,7 @@ object BlockBase {
if (gameItem.inventoryCategory == GameItem.Category.BLOCK) {
var ret1 = true
ingame.actorContainerActive.forEach {
if (it is ActorWithBody && it.usePhysics && it.intTilewiseHitbox.intersects(mousePoint))
if (it is ActorWithBody && it.physProp.usePhysics && it.intTilewiseHitbox.intersects(mousePoint))
ret1 = false // return is not allowed here
}
if (!ret1) return ret1