I’m curious why you used UPrimitiveComponent vs UStaticMeshComponent. When I tried it on my own, I used UStaticMeshComponent and it seemed to work fine. Is it because UPrimitiveComponent is higher up the inheritance tree and thus more generally applicable?
Also, while experimenting with the code, it seemed to me that a lot of components have a separate mass attribute. So if I wanted the total mass of an actor with multiple components, I’m assuming I would iterate through all components and tally their individual masses. The current iteration of code just takes the mass of the first returned UPrimitiveComponent. Is this accurate?
Thanks in advance