This commit is contained in:
Anuken
2020-02-08 16:00:54 -05:00
parent ba1f59aa71
commit 5169e197b6
8 changed files with 9 additions and 11 deletions

View File

@@ -32,7 +32,6 @@ abstract class FlyingComp implements Posc, Velc, Healthc, Hitboxc{
}
void moveAt(Vec2 vector){
Floor on = isFlying() ? Blocks.air.asFloor() : floorOn();
Vec2 t = Tmp.v3.set(vector).scl(floorSpeedMultiplier()); //target vector
float mag = Tmp.v3.len();
vel.x = Mathf.approach(vel.x, t.x, mag);