Hi Have anyone seen this kind effect forge
click the decompose button, the mode will get decomposed or exploded.
I am trying to do the same thing, here is what I’m thinking about.
Traverse every entities within the model and move each entity in the direction point outwards from the center of the model bounding box to the center of entity itself?
for each entity within the model
- posA = Get the position of the entity center
- posB = Get the position of the model bounding box.
- Calculate the direction vector point from posB to pos A
- Translate the entity
But the steps mentioned above can not achieve the similar result, Any thoughts? suggestions?