For a VR simulation I’m working on; I have a rectangular window frame, a button to rotate the window frame, and a tilted table that the window frame is sitting on. When I rotate the frame, it hangs over the end of the table, and I’m unsure on how to keep the frame on the edge table.
Linked is a video of the rotation mentioned, as well as the level blueprint that I’m currently using to rotate the frame. (There are 3 tables in my level, the 20 degree table is the one in the video)
With AddActorWorldOffset the frame moves away from the table as you continue to push the button.
I’ve tried AddLocalOffset with a little bit of progress, but atleast one side still hangs over.
Any suggestions on what I can add to the blueprint to move the frame properly? Maybe a method to set up the button so that every press is a different offset?