ExplosionAPI¶
Interface ExplosionAPI
interface ExplosionAPI {
createExplosion(centerNodeID?: number): void;
endExplosion(): void;
performExplosion(explosionFactor: number): void;
}
createExplosion(centerNodeID?: number): void;
endExplosion(): void;
performExplosion(explosionFactor: number): void;
}
Hierarchy (View Summary)
- ExplosionAPI
Index
Methods
create Explosion
Creates an Explosion (around a given point).
Parameters
OptionalcenterNodeID: numberThe nodeID of the node around which center the explosion is created.
Returns void
end Explosion
Restores the initial transformations of all exploded parts.
Returns void
perform Explosion
Performs the actual Explosion.
Parameters
- explosionFactor: number
The value by which the parts are expanded.
Returns void
- explosionFactor: number
Was this page helpful? Please leave a thumbs up or down.
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.