Move setVelocity from PlayerEntity to Entity.