I’m generating an actor at runtime out of multiple meshes, and I want it to behave physically with the world (imagine like a Katamari ball). And the meshes themselves are generated at runtime, using a component similar to the GeneratedMeshComponent on the wiki at A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums
So right now my actor looks something like this:
AMyActor
USceneComponent
UGeneratedMeshComponent
UGeneratedMeshComponent
...
However, since the actor by default doesn’t have any objects in it, I don’t seem to have the physics settings in the editor like on the static mesh class.
What do I need to do to get physics to work on the entire actor? Am I doing this totally wrong? Should I create a custom SceneComponent just to hold the UBodySetup that manually merges all the data from the procedural geometry it holds? That seems easy to break if the components get out of sync.
Also, if I put physics data on each component, will they interact with the physics system independently or is there some system that makes the actor into a coherent whole, welding the masses from each body together?