maikklein
(maikklein)
March 27, 2014, 2:15pm
1
I also made a question at Raycasting doesn't return anything - Programming & Scripting - Unreal Engine Forums
I think it has something to do with the actor that I am trying to raycast. Maybe I need to enable raycasting on the actor somehow? The only thing that I did was that I have set the collision to blocking all for the static mesh.
maikklein
(maikklein)
March 27, 2014, 2:40pm
2
I found the error, I just needed to use LineTraceSingle from UWorld.
But what is the purpose of LineTraceComponent from Mesh?
Dig_Squid
(Dig_Squid)
March 27, 2014, 2:48pm
3
LineTraceComponent is for tracing against a single component, rather than the world.
vblanco have this tutorial, using raycast to hit actors in scene
This is a complete copypaste from what i had in the UE4 beta program, Its a tutorial to create a USE system like the one in UDK, using interfaces. I will polish it a bit and upload to the wiki. But for now, enjoy it. The system uses a IUsable...
i believe to be very useful for you