How to make a character perform a 180° ?
Hello there :)
I have a character BP (not controlled by a player). This actor always move forward (every tick move along the forward vector). I want this actor to perform a 180° everytime he hit something (via hit event). My first thought was to use "add controller yaw input", but for some reason it does not apply to my actor. Then I tried with "set world rotation", but it seems to turn my mesh but not the forward vector. I also tried with "set control rotation" but I have some weird results.
How would you guys manage to do that ?
Thanks in advance
asked May 25 '14 at 10:06 PM in Blueprint Scripting
Set Actor Rotation?
It really depends on how the movement is applied. You may need to rotatte the character AND reverse the movement.
answered May 26 '14 at 12:20 AM
This should do what you want it to do. Moves continuously in one direction until it encounters something, then rotates 180 degrees and moves in that direction. I set it up for begin overlap events, but hits will work just as well if you've got collisions set up right.
answered May 26 '14 at 01:52 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here