This scene file stacks up a series of spheres. In it's current form it
stacks them within a circular container which is controlled by the
randomised translation at line 32 and the randomised rotation at line 33.
To make it a fit a rectangular container just use a randomised x and z
translation. At line 55 you probably should also remove the rotation, so
that any collisions are resolved by moving the object straight upwards
(Otherwise objects close to the containers edge could be rotated out of the
container).
Regards,
Chris B.
Post a reply to this message
Attachments:
Download 'pebbles.pov.txt' (3 KB)
|