Closed Garanas closed 3 months ago
@Hdt80bro any idea why the mesh change no longer works 1 tick after creating a tree group?
What if instead of hiding the mesh you just spawn an additional prop with the invisible shader? So parent tree group goes away, new invisible reclaim entity appears from the break.
Because you'd lose the reclaim order on the original tree group when we do that. The nice part about this solution is that you would not lose that order 😃 !
Okay what about the reverse--the tree group is always an invisible, but has a submesh/entity/something(?) that gets resized when it breaks (so the parent bounding box remains for clickability). Does that require an additional dummy parent entity?
I just tried that suggestion; I can't get it to work reliable. I just don't know how the engine determines what is and is not clickable and what the preferences are
Description of the proposed changes
This is based on a suggestion of @clyfordv where when a tree group breaks (because of a collision, damage, etc) we do not delete the group and instead spawn in individual trees that are not reclaimable. That way we can still reclaim the tree group as a whole, and instead reduce the mass value as individual trees are destroyed.
Testing done on the proposed changes