How to ray cast?
Hello, so i was just wondering how i can make a simple ray cast within UE4 say for like weapons or AI? also some examples would be great! i seen a few other posts but the answers weren't very clear so i was hoping to get some clarity with this :)
asked Oct 29 '14 at 06:46 PM in C++ Programming
You have a lot of that in GWorld:
For example in Unreal Tournament, trace channels are defined in UnrealTournament.h.
And then used from many places such as: UTGameplayStatics::ComponentIsVisibleFrom(...).
Where TraceStart and TraceEnd are vectors, OutHitResult is an out parameter that have result of your hit test.
Follow this question
Once you sign in you will be able to subscribe for any updates here