Hi, we’re using chaos cache manager to destroy objects in the game. We have a situation where when the player dies, we want to respawn them onto a checkpoint before the destruction. Hence, we need a way of resetting the destruction back to the initial state.
On the cache manager, we’re using the triggered play mode since when we set it to static pose mode, the geometry collection doesn’t seem to have any collisions. We’ve tried calling all the random function we could find that looked like could help including:
UGeometryCollectionComponent::EditRestCollection()
UGeometryCollectionComponent::RecreatePhysicsState()
UGeometryCollectionComponent::ResetDynamicCollection()
UGeometryCollectionComponent::RefreshEmbeddedGeometry()
AChaosCacheManager::BeginEvaluate()
AChaosCacheManager::EndEvaluate()
We’ve tried calling different combinations of these functions, with mixed results. Everything from resetting the visuals but not the collisions, to resetting the collisions and the visuals, but being unable to play the cache again.
What’s the proper way of resetting the geometry collection and replaying the cache?
Thank you for your help.