
Shatters objects into specified amount of segments, aswell as radial segments.
The amount of segments, the center of the shattering, the amount of radial segments, bias towards/away from center, angle, and secondary angle (for radial segments and segments) can all be changed, and almost all of them also can be randomized (all randomization(apart from center) is a percentage, and constrained, however it is still possible to create overlapping pieces and/or incorrectly shatter).
To use, run the script.
If you have objects selected, it will take the first one as the one to shatter. if there are no objects select one with the top button.
If a choosen object is a cylinder, sphere, cone..etc (with no modifiers applied) you can choose to change the scripts parameters to fit with the choosen object (so if you choose a cylinder with 8 sides, the segments would be changed to 6).
Choose how many segments, the randomness (of the angles) and where the object is shattered around (also with randomness, in world units). You can also choose the rotation of the segments cuts, making them angled instead of straight up.
Choose how many radial segments, the bias towards/away from the center of shattering, and the randomness of this, the angle of the radial segments cuts, how random they are, and the rotation of the radial segments cuts, aswell as its randomness.
Press Shatter, and the progress bar does a few things:
1: Sets up objects for shattering (Color=red) (note, it complets the bar more then once)(note, unless you have a large amount of segments (100+) and/or radial segments (50+) this should hardly be noticeable)
2: Shatters objects (Color=red-green). It starts at red, and when it finishs it will have turned green.
By brttd · 2012-12-14
barigazy · 2012-12-14