ANIM231 Final
Golf
For this project, I created a golf field. I used a python script to generate 5 balls on the sky at random positions.
I defined a function to randomly assign translate values and move the spheres and a function to rename the spheres to "Golf". Then I applied active rigidbody to the balls and passive rigidbody to the ground after the balls were generated.
Then I applied a gravity field on the ground, so that the balls will move with real world physics. They would drop on the ground and bounce. To make sure the balls fall to the hole, I created a radial field under the hole to attract the balls, and I set a keyframe for the magnitude to enable the field after a moment.
Comments
Post a Comment