3.2 RandRBattr
3.2.1 Origin and Purpose
This tool originated from the desire to have some rigid body (RB)
randomization tools in one place. The code is very simple, yet cen-
tralizes often-used functions when using RBs:
1. Apply a random spin to all selected RBs.
2. Apply a random velocity to all selected RBs.
3. Put all selected RBs in a different collision layer to avoid
3.2.2 Top-Down Design
This script is so simple that it doesn’t really warrant a top-down
design. The parent UI is a scrollLayout with thr ee collapsible
frameLayouts inside.
First Blood
Chapter 3
Figure 3-5

Get Professional MEL Solutions for Production now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.