How to enable physics / create InstanceBodies for UPaperGroupedSpriteComponent?

Hey guys!

everytime I add instances to a UPaperGroupedSpriteComponent, the “InstanceBodies” array of the component stays empty, so no physic representation of the instances exist. How can I create the InstanceBodies / enable physics & collision for the instances?

Thanks! :slight_smile:

Enable collision/physics:

SpriteComponent->SetCollisionEnabled(ECollisionEnabled::QueryAndPhysics);

Rebuild InstanceBodies:

SpriteComponent->RecreatePhysicsState();

Make sure that your Sprite has collision enabled as well.