Better physics
@@ -134,6 +134,12 @@ public class Vec2 implements Vector<Vec2>, Position{
return this;
}
+ public Vec2 add(Vec2 vec, float scl){
+ this.x += vec.x * scl;
+ this.y += vec.y * scl;
+ return this;
+ }
+
/**
* Adds the given components to this vector
* @param x The x-component
