The is my code for Implementing the GrabComponentAtLocationwithRotation
GrabComponentAtLocationWithRotation Arguments:
The code works I’m just trying to understand how the PhyusicHandle identifies the Gargoyle Statue as the object it is to control.
I understand that HitResult is an out parameter provided by the SweepSingleByChannel which gives the means to get information on the SM_Gargoyle_Statue.
Looking at the SM_Gargoyle_Statue I can see it does have a StaticMeshComponent , is that the actual geometry of the Statue which SweepSingleByChannel uses to detected collisions?
If I look up in StaticMeshComponent in the Unreal Doc it takes me to the UStaticMeshComponent description, which has an Inheritance hierarchy which includes UPrimitiveComponent
So, in summary when I call HitResult.GetComponent() is it returning a pointer from the StaticMeshComponent child of the SM_Gargoyle_Statue then is it able to perform a implicit cast to UPrimitiveComponent due to the Inheritance hierarchy or does this work in a different way?