Added Vec3 to setVelocity function