transform method

  1. @override
Vector2 transform(
  1. Vector2 velocity,
  2. double mass,
  3. double dt
)
override

Implementation

@override
Vector2 transform(Vector2 velocity, double mass, double dt) {
  return Vector2(
    velocity.x < value.x ? value.x : velocity.x,
    velocity.y < value.y ? value.y : velocity.y,
  );
}