Hi everyone,
I’m working on a VR excavator simulator in Unreal Engine using the VR Expansion Plugin. I’m trying to implement a custom lever that moves in both the X and Y axes, and I want to detect 4 specific states based on the direction it’s moved:
- State 1: Lever moved in +X direction (Right)
- State 2: Lever moved in –X direction (Left)
- State 3:Lever moved in +Y direction (Forward)
- State 4:Lever moved in –Y direction (Backward)
The lever starts at a neutral center point (0,0), and I need to detect which direction it’s currently being pushed toward in real time, ideally by reading the lever’s rotation or position.
Has anyone implemented a similar logic or can suggest the best way to approach this in Blueprints (or C++)?