You will have to write a function to do this yourself. better still, stop using setVelocity, it’s evil.