You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tutorials/physics/soft_body.rst
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,8 +2,8 @@
2
2
3
3
.. _doc_soft_body:
4
4
5
-
Using SoftBody
6
-
==============
5
+
Using SoftBody3D
6
+
================
7
7
8
8
Soft bodies (or *soft-body dynamics*) simulate movement, changing shape and other physical properties of deformable objects.
9
9
This can for example be used to simulate cloth or to create more realistic characters.
@@ -15,7 +15,7 @@ A :ref:`SoftBody3D <class_SoftBody3D>` node is used for soft body simulations.
15
15
16
16
We will create a bouncy cube to demonstrate the setup of a soft body.
17
17
18
-
Create a new scene with a ``Node3D`` node as root. Then, create a ``Softbody`` node. Add a ``CubeMesh`` in the ``mesh`` property of the node in the inspector and increase the subdivision of the mesh for simulation.
18
+
Create a new scene with a ``Node3D`` node as root. Then, create a ``SoftBody3D`` node. Add a ``CubeMesh`` in the ``mesh`` property of the node in the inspector and increase the subdivision of the mesh for simulation.
19
19
20
20
.. image:: img/softbody_cube.png
21
21
@@ -36,9 +36,9 @@ Let's make a cloak in the Platformer3D demo.
36
36
37
37
.. note:: You can download the Platformer3D demo on `GitHub <https://github.com/godotengine/godot-demo-projects/tree/master/3d/platformer>`_ or `the Asset Library <https://godotengine.org/asset-library/asset/2748>`_.
38
38
39
-
Open the ``Player`` scene, add a ``SoftBody`` node and assign a ``PlaneMesh`` to it.
39
+
Open the ``Player`` scene, add a ``SoftBody3D`` node and assign a ``PlaneMesh`` to it.
40
40
41
-
Open the ``PlaneMesh`` properties and set the size(x: 0.5 y: 1) then set ``Subdivide Width`` and ``Subdivide Depth`` to 5. Adjust the ``SoftBody``'s position. You should end up with something like this:
41
+
Open the ``PlaneMesh`` properties and set the size(x: 0.5 y: 1) then set ``Subdivide Width`` and ``Subdivide Depth`` to 5. Adjust the ``SoftBody3D``'s position. You should end up with something like this:
42
42
43
43
.. image:: img/softbody_cloak_subdivide.png
44
44
@@ -50,15 +50,15 @@ Add a :ref:`BoneAttachment3D <class_BoneAttachment3D>` node under the skeleton n
50
50
51
51
.. image:: img/softbody_cloak_bone_attach.png
52
52
53
-
To create pinned joints, select the upper vertices in the ``SoftBody`` node:
53
+
To create pinned joints, select the upper vertices in the ``SoftBody3D`` node:
54
54
55
55
.. image:: img/softbody_cloak_pinned.png
56
56
57
-
The pinned joints can be found in ``SoftBody``'s ``Attachments`` property, choose the ``BoneAttachment`` as the ``SpatialAttachment`` for each pinned joints, the pinned joints are now attached to the neck.
57
+
The pinned joints can be found in ``SoftBody3D``'s ``Attachments`` property, choose the ``BoneAttachment`` as the ``SpatialAttachment`` for each pinned joints, the pinned joints are now attached to the neck.
58
58
59
59
.. image:: img/softbody_cloak_pinned_attach.png
60
60
61
-
Last step is to avoid clipping by adding the Kinematic Body `Player` to ``Parent Collision Ignore`` of the ``SoftBody``.
61
+
Last step is to avoid clipping by adding the Kinematic Body `Player` to ``Parent Collision Ignore`` of the ``SoftBody3D``.
0 commit comments