Get Forward Vector from Editor Camera Viewport
I'm currently working on a tool within Unreal Engine 4 that allows our designer to quickly place Actors inside our levels, and hook certain variables onto it.
Currently I am at the point of spawning the Actors inside the level, and all is going well. However, I want the Actor to spawn in front of the camera's viewport to access it quickly, and not let the Actor spawn at lets say (0,0,0).
I have been working on this issue for quite some time now, and I'm new to C++. (Yes I have knowledge and experience in Blueprints and with the Editor itself).
I'm really staring blanks right now. If somebody could point me into the right direction, that would be gladly appreciated!
Thanks in advance,
asked Mar 23 '15 at 10:51 AM in C++ Programming
You can do that:
Next, you might want the object to collide with the groud or something before spawning? Anyway, in your code, it looks like you only want to spawn it 600 unit in front so that's also viable.
Hope this helps!
answered Mar 23 '15 at 03:21 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here