The ExplosionAPI provides a very basic explosion, which moves the parts away from a given point.
The Explosion is completely circular. Overlapping parts are possible.
Example
// Get an instance of the ContextAPIconstmyContext : ContextAPI = webvis.getContext( "example" )constnodeID : number = myContext.add("someModelURL");// Create a simple Explosion from the center of the node's BoxVolume.myContext.createExplosion(nodeID);// Perform the Explosion. All parts are moved away 0.3 times their distance to the center of the node.myContext.performExplosion(0.3);// Reset all transformations.myContext.endExplosion();
Restrictions
Explosions cannot be performed on monolithic models.
The ExplosionAPI provides a very basic explosion, which moves the parts away from a given point. The Explosion is completely circular. Overlapping parts are possible.
Example
Restrictions
Explosions cannot be performed on monolithic models.