Rotate incrementally on input
I have a requirement to rotate at 90 degree increments on controller input. I’ve got the motor bolt to rotate on button input.
I’ve tried using a timer linked up to a controller to do it, but there must be an easier way. I want to have a rotation in one direction with one button and a rotation in the opposite direction with another button, with a Pulse triggering a full 90 degree rotation regardless of duration.
Gonna try a microchip tomorrow with some logic but that is a bit melty on the brain...
-
Try a Look At Rotator (or four of them). Don't rely on physics (motor + time) or it may eventually get out of synch.
There may be something easier with keyframes but I haven't experimented with them yet. -
OK, I've experimented a little with the keyframes and getting some joy with a single Look At Rotator. You can wire a Direction input (hang on a sec) into its 'Scene Space Direction' in/out.
To make a Direction input, combine some values into a Combiner set to 'Direction' or read them off some reference objects. Reference objects might be easier - I thought the rotator would be a nice x angle, y angle, z angle but it's behaving ratther more complexly. -
QR - thank you man!! I’ll give it a shot. ?
-
I should check how I did it in LBP2 - I might have had four gyroscopes set up.
Please sign in to leave a comment.