Game Development Reference
In-Depth Information
on all pivot joints with the exception of the first one, the one that connects to the hook
node.
For each joint, select the Spring Enabled check box and then change Damping to 0.5 and
Stiffness to 8.0 . Also, ensure Limit Enabled is still checked before changing the Min / Max
values to -45 and 45 .
The spring settings allow the rope to expand and contract slightly, which automatically
has the effect of distributing forces throughout the rope. A force applied to an individual
rope segment will therefore spread throughout the entire rope. The smaller angle limit also
causes any rope segment reaching the limit to pass on any further rotation to its connected
segment. Again, this helps to give the impression that forces acting on individual rope
segments affect the entire rope.
The resulting rope should look like the one in Figure 9-9 . Notice that the ball was moved
in front of all chain segments to ensure that chain segments are drawn in front of the ball.
Search WWH ::




Custom Search