Hi ! I just started the Unreal blueprint course on udemy and am on the second game Crystal Cavern and started playing around a bit with what I’ve learned before building it, however, I ran into a problem:
What I want to happen:
I want a block to move in the same direction it is placed in the world and move back and forth to block the path of the ball (to always move in the block’s own x-direction).
What is happening:
The block only moves in the world x position, disregarding the angle of the block. I thought that if I used the relative locations/rotations I would not have this issue in the world. This seems like such a fundamental thing that I need to understand and would really appreciate the help.
See how it behaves here:
Blueprint for the block:
What I’ve tried:
- I tried using a forward vector instead of grabbing the object’s location: https://answers.unrealengine.com/questions/61818/move-an-actor-in-his-local-axis-orientation-using.html
- I tried using the world location instead of the relative:
https://answers.unrealengine.com/questions/585170/trying-to-make-an-object-move-back-and-forth.html - I’ve tried to target the relative rotation but haven’t gotten that to work as I instead make it rotate.