Ok, I know I’ve had lots of questions here lately but I don’t know where else to go. Iv’e done ALOT of research last couple days and it seems I cant do what I want.
I have a LinetraceSingle() returning a HitResult and I can determine which actor was hit no problem.
I have a Cube blueprint and In that blueprint I want it to recognize it was hit by the trace, and which face was hit.
The line trace comes from a C++ actor component attached to the player.
With a FVector_NetQuantizeNormal, I can store a HitResult.Normal, but only in world space. So if the cube is rotated I get different results.
Another problem with this is all of that is in my linetrace function. I’m having a hard time figuring out how to simply tell the hit actor it was hit, then preform whatever action
its supposed to do from within its own class (or blueprint).
I’m far from a “good” programmer so I apologize if what I’m asking makes little sense. Unreal C++ tutorials are pretty limited.
PS: If anyone out there wants to look at my code and help me fix fundamental problems with it, I’d be more than happy to compensate you with whatever seems fair