Raycasting doesn't return anything.
I am raycasting from c++ to a blutprint which is an actor.
The code looks like this:
Which looks like this
note that I have moved the camera a bit so that you can see the debug rays
The rays seem to be in the correct position. The object that you see is a Blueprint actor with a static mesh and the collision is set to block all, and a static light that I can trigger with the left mouse button via the OnClicked event, which is probably also doing a raycast.
The hit location is always 0 0 0, and it also doesn't find an actor.
What have I done wrong?
I found the error, I just needed to use LineTraceSingle from UWorld.
answered Mar 27 '14 at 02:40 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here