air drag sim is tuned so it's 'playable' than being physically accurate

This commit is contained in:
minjaesong
2022-01-05 16:58:57 +09:00
parent 0479eb1eb6
commit 203252cec4

View File

@@ -564,7 +564,7 @@ open class ActorWithBody : Actor {
/**
* Area
*/
val A: Double = (scale * baseHitboxW / METER) * (scale * baseHitboxW / METER)
val A: Double = (scale.sqrt() * baseHitboxW / METER).sqr() // this is not physically accurate but it's needed to make large playable characters more controllable
/**
* Drag of atmosphere
* D = Cd (drag coefficient) * 0.5 * rho (density) * V^2 (velocity sqr) * A (area)