Hello! I’ve discovered how to obtain actor under cursor, which is function
GetHitResultAtScreenPosition(...), but I need to know, not only actor, which was hit, but also point on actor’s pawn, where it received hit. It can be done by obtaining by
DeprojectMousePositionToWorld(FVector & WorldLocation, FVector& WorldDirection),then creating ray, which starts at WorldLocation and points at WorldDirection. Now just intersect this ray with hitted pawn, and that’s all.
So, is there any way to intersect ray and pawn?