setVelocity method

void setVelocity({
  1. required Vector2 vel,
})

Set the velocity of the body.

Implementation

void setVelocity({required Vector2 vel}) => _body.setVelocity(vel: vel);