Setting rotation speed to correspond to another objects rotation / orientation
Hi guys! I have a wheel on a ship which spins nicely with left stick input, along with a separate advanced rotator to steer the ship, however rather than map left stick to steer in usual analogue fashion (ie hard left/right on the stick = full steering), I want to make the ships rotation speed scale with the rotation of the ship wheel (ie 0 degrees is straight on, 20 degrees clockwise steers right slightly, 180 degrees clockwise steers right aggressively). I pondered using a rotation sensor to detect the orientation of the ship wheel and then output this into the rotation speed of the ship, however how can I adjust how the value maps across from the sensor to the ship rotator? What value does the orientation output send over?
Is this even the best way to do it?!
-
Would an angle sensor help attached to the ship wheel to detect how aggressive the turn is and output a corresponding value that could be fed direct to the ship rotator.
-
I thought more laterally in the end! I have two counters, which take care of left and right with a value of 0-5. These feed into calculators which multiply out the value (one of them converts to negative) and then feed into the advanced rotator. Works a treat although that is with the dpad presently. Next step is to make it work with the sticks so that the wheel rotates and the ship steers. To change a constant signal from the stick into something that would make a counter go up or down, can I just use a signal manipulator to make it pulse?
Please sign in to leave a comment.