I want to rotate an object based on its position. There are four different positions which are Position1: 60, -25, -10
Position2: 60, 42, -10 Position3: 60, -25, -80 Position4: 60,42, -80. Based on the side it’s on, left or right I want to rotate it the same way. So if it’s on the left side I want to rotate it to the left and if it’s on the right side I want to rotate on the right. I attached a picture with 4 different Box Collisions as position representation, but the test object or wood-looking object will be what’s moving.
In my current blueprints, I tried to start off by making it so the condition was based on its current location and rotation values. If these current values were true it would rotate the object by (0,0, -45) or to the left. If the values were False or didn’t match these values it would reset the object back to its normal location. Currently, all the blueprints do is rotates the object and you can’t rotate it back. The key also works when the object is in any of the 4 locations when it should just be the one based on the conditions.
What am I doing wrong with my blueprints currently and after I finish it how can I make the InputAction rotate appropriately for each location without having to change the InputAction?
Thank you for taking the time to look at my post. Please let me know if there is anything you need me to clarify. I’m new to unreal and blueprinting and appreciate the help!