How to convert FHitResult ImpactPoint to local location of hitted object

I am looking for a solution to convert ImpactPoint of FHitResult form World to Local transform of hitted object.
For now I didn’t find any convert function, etc

Hi Xender,

Not sure, that such function exist. However, you can to do it itself. You should find vector from actor origin and then transform vector using actor local space.

auto location = Impact.GetActor()->GetActorLocation();
auto rotation = Impact.GetActor()->GetActorRotation();
auto VectorInActorLocalSpace = rotation.UnrotateVector(Impact.ImpactPoint - location);

Hope it helps!

I will test it today :wink:
I trying to imagine that, and I think it should work!
Thanks for help. Ofcourse if I ecounter any other problems I will come back to this topic :smiley:

We haven’t heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you’re still experiencing this issue, please try to verify your install and then post back here with the results.

Is it possible to perform with action with the Transform Location node in the graphs?