Ok how can i make my joint motor rotate in a +z with key stroke “o” and rotate -z with key stroke “k”
This is my code so far.Just simple to control the motor
function Update() {
if (Input.GetKey("k")) {
hingeJoint.useMotor = true;
} else {
hingeJoint.useMotor = false;
}
}
Thanks for any help i get!