velocity property

Vector2 get velocity

Implementation

Vector2 get velocity => _velocity;
set velocity (Vector2 velocity)

Implementation

set velocity(Vector2 velocity) {
  _velocity = velocity;
  _updateLastDirection(_velocity);
}