2009
The script scans the selection for geometry with names that include one of
the following:
■ _R_UpperArm
■ _R_ForeArm
■ _L_UpperArm
■ _L_ForeArm
■ _R_Thigh
■ _R_Calf
■ _L_Thigh
■ _L_Calf
■ _Pelvis
■ _Spine
■ _Head
The script assumes that there is only one of each type of part, except in the
case of the spine, which can have up to five parts.
At this point the adjoining parts are connected, using mostly Rag Doll
constraints
on page 3948. However, the script also uses Hinges on page 3969 for
the elbow and knee joints, as using Rag Doll constraints would be overkill to
achieve the simple constrained motion found in an elbow joint. The script
also sets suitable limits for each constraint.
In addition, the script sets the mass of each rigid body in the character to 10.0
kilograms, and the simulation geometry to be a bounding box. It also disables
collisions between constrained pairs of bodies.
4110 | Chapter 16 reactor