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(
    lerpDouble(velocity.x, 0, dt * value.x) ?? 0,
    lerpDouble(velocity.y, 0, dt * value.y) ?? 0,
  );
}