void CheckVelocity() { Rigibody.LinearVelocity = QVec.Clamp( Rigibody.LinearVelocity, new QVec(-MaxVelocity, -MaxVelocity), new QVec(MaxVelocity, MaxVelocity * 2f) ); }