Teleport by set amount from forward vector C++
I'm working on a 3D project within Unreal but am running into issues with a blink ability/teleport ability I am coding. For some reason my character does teleport, but only in one direction, from what I can see this is the X axis. Most of the examples I can find on this topic are using blueprint, in which I am struggling to convert into working C++. I've also included the log, which to me returns what I would expect. The project is built on top of the Third Person platformer template within Unreal. Any help would be greatly appreciated, I've attached a code snippet below of the blink method.
You could be colliding with something. Check the return of SetActorLocation and maybe pass in the OutSweepHitResult variable for more info.
answered Jul 06 '17 at 02:31 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here