Fixed floorSpeedMultiplier being squared

This commit is contained in:
Anuken
2021-08-22 15:53:07 -04:00
parent 3ba2498815
commit 5cc50b0ff3
8 changed files with 13 additions and 10 deletions

View File

@@ -56,7 +56,7 @@ abstract class FlyingComp implements Posc, Velc, Healthc, Hitboxc{
void moveAt(Vec2 vector, float acceleration){
Vec2 t = tmp1.set(vector); //target vector
tmp2.set(t).sub(vel).limit(acceleration * vector.len() * Time.delta * floorSpeedMultiplier()); //delta vector
tmp2.set(t).sub(vel).limit(acceleration * vector.len() * Time.delta); //delta vector
vel.add(tmp2);
}