mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-07 20:31:51 +09:00
pre-fuck-up commit inside of pre-fuck-up commit
This commit is contained in:
@@ -398,6 +398,7 @@ open class ActorWithPhysics(renderOrder: RenderOrder, val immobileBody: Boolean
|
||||
|
||||
displaceHitbox()
|
||||
applyNormalForce()
|
||||
applyControllerMoveVelo() // TODO
|
||||
}
|
||||
else {
|
||||
hitbox.translate(externalForce)
|
||||
@@ -615,6 +616,9 @@ open class ActorWithPhysics(renderOrder: RenderOrder, val immobileBody: Boolean
|
||||
// find "edge" point using binary search
|
||||
// [END OF SUBROUTINE]
|
||||
|
||||
// TODO IDEA: if hitbox of controllerMoveDelta is shrunken then you won't need "PUSH THE HITBOX INTO THE AIR" part
|
||||
|
||||
|
||||
fun getBacktrackDelta(percentage: Double): Vector2 {
|
||||
if (percentage < 0.0 || percentage > 1.0)
|
||||
throw IllegalArgumentException("$percentage")
|
||||
|
||||
Reference in New Issue
Block a user