mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-09 10:04:05 +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()
|
displaceHitbox()
|
||||||
applyNormalForce()
|
applyNormalForce()
|
||||||
|
applyControllerMoveVelo() // TODO
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
hitbox.translate(externalForce)
|
hitbox.translate(externalForce)
|
||||||
@@ -615,6 +616,9 @@ open class ActorWithPhysics(renderOrder: RenderOrder, val immobileBody: Boolean
|
|||||||
// find "edge" point using binary search
|
// find "edge" point using binary search
|
||||||
// [END OF SUBROUTINE]
|
// [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 {
|
fun getBacktrackDelta(percentage: Double): Vector2 {
|
||||||
if (percentage < 0.0 || percentage > 1.0)
|
if (percentage < 0.0 || percentage > 1.0)
|
||||||
throw IllegalArgumentException("$percentage")
|
throw IllegalArgumentException("$percentage")
|
||||||
|
|||||||
Reference in New Issue
Block a user