mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-11 11:04:05 +09:00
fixed a problem in prev commit msg somehow
This commit is contained in:
@@ -585,11 +585,11 @@ open class ActorWithPhysics(renderOrder: RenderOrder, val immobileBody: Boolean
|
|||||||
|
|
||||||
// ignore MOST of the codes below (it might be possible to recycle the structure??)
|
// ignore MOST of the codes below (it might be possible to recycle the structure??)
|
||||||
|
|
||||||
val sixteenStep = (0..ccdSteps).map { hitbox.clone().translate(vectorSum * (it / ccdSteps.toDouble())) }
|
val sixteenStep = (0..ccdSteps).map { hitbox.clone().translate(vectorSum * (it / ccdSteps.toDouble())) } // zeroth step is unused
|
||||||
|
|
||||||
val affectingTiles = ArrayList<BlockAddress>()
|
val affectingTiles = ArrayList<BlockAddress>()
|
||||||
var collidingStep: Int? = null
|
var collidingStep: Int? = null
|
||||||
for (step in 0..ccdSteps) {
|
for (step in 1..ccdSteps) {
|
||||||
val stepBox = sixteenStep[step]
|
val stepBox = sixteenStep[step]
|
||||||
forEachOccupyingTilePos(stepBox) {
|
forEachOccupyingTilePos(stepBox) {
|
||||||
val tileCoord = LandUtil.resolveBlockAddr(it)
|
val tileCoord = LandUtil.resolveBlockAddr(it)
|
||||||
|
|||||||
Reference in New Issue
Block a user