Destructible component doesn't register hit event with Landscapes. The only way to get the Destructible to register the event is to enable Impact Damage on the Destructible mesh.
User Description:
I have a very simple BP actor, with only one Destructible component, nothing else. That component has "Simulate Physics" flag on, as well as the "Simulation Generate Hit Events" flag. Collision preset is set to custom, with colission enabled for query and physics. It blocks the game map terrain.
Now in the game, when this actor is being spawned, it correctly falls down to the terrain and stops there, so collision is correctly detected. However, neither the "OnComponentHit" event of the component nor the generic "Event Hit" events are being triggered when that actor touches the ground.
Edit by Sean F.: This does not appear to be isolated to landscapes. The same issue appears when attempting to generate a hit event when colliding with a static mesh if the DM does not have Enable Impact Damage enabled.
1. Open QA-Game
2. Create a basic landscape
3. Create an actor class BP & open it
4. Add a Destructible component
5. In the Details panel, Add a Destructible mesh > Enable 'Simulate Physics' > Enable 'Simulation Generates Hit Events'
6. In the Event Graph, Print a string OnComponentHit for the Destructible
7. Compile & save
8. Place the BP into the level (above the landscape)
9. PIE
Results: The Destructible component will not register a hit event with the landscape.
Expected: For the hit event to register in the same way as using a Static Mesh component or as when the Destructible hits a static mesh instead of a landscape.
Head over to the existing Questions & Answers thread and let us know what's up.
16 |
Component | UE - Simulation - Physics - Destruction |
---|---|
Affects Versions | 4.12.5, 4.14 |
Created | Aug 9, 2016 |
---|---|
Resolved | Mar 19, 2018 |
Updated | Sep 25, 2018 |