Quote:
Originally Posted by notmattlythgoe
You can also just place a - in front of it.
Code:
if (reversing) { //Put whatever code you use to detect if you're reversing here
myMotor.set(-joystick.getYAxis()); //Set a motor to the inverse of the Y axis.
}
|
Is this just a matter of aesthetics, or does it actually generate more efficient code?