Examples – Приклади#

Тут є кілька простих прикладів, що показують потужність фізики м’якого тіла.

Відскікний Куб – A Bouncing Cube#

Процес – The Process#

Спершу, змініть стартовий та кінцевий кадри як 1 та 150 відповідно.

Then, add a plane, and scale it five times. Next, go to the physics tab, and add a collision. The default settings are fine for this example.

Now add a cube, or use the default cube, then enter Edit Mode to subdivide it three times. Add a Bevel Modifier to it to smoothen the edges and then to add a little more, press R twice, and move your cursor a bit.

Після завершення ваша сцена повинна виглядати так:

../../_images/physics_soft-body_examples_scene-ready.png

Сцена, готова для фізики м’якого тіла.#

Everything is ready to add the soft body physics. Go to Properties ‣ Physics and choose Soft Body. Uncheck the Soft Body Goal, and check Soft Body Self Collision. Also, under Soft Body Edges, increase the Bending to 10.

Playing the animation will now give a slow animation of a bouncing cube. To speed things up, we need to bake the soft body physics.

Under Soft Body Cache change the values of your start and end frames. In this case 1 and 150. Now, to test if everything is working, you can take a cache step of 5 or 10, but for the final animation it is better to reduce it to 1, to cache everything.

Ви можете тепер запекти цю симуляцію, призначити для куба матеріали й текстури та рендерити анімацію.

Результат – The Result#

The rendered bouncing cube