Using SoftBody for 3D games
In this recipe, we will create a banner using SoftBody3D. We are going to create a ground with two poles that we will attach to the banner, and when we play the scene the banner will fall, and you can see how the SoftBody3D reacts.
Getting ready
For this recipe, click the + sign to the right of the NavServer2D scene we just completed to add a new scene. In the Scene tab, click 3D Scene. Click on the word Scene in the main menu next to Project, then select Save Scene As and name it SoftBody3D
. Right-click Node3D and select Rename, and rename it World
.
How to do it…
Let’s first create a basic area with the ground and two poles along with a camera:
- Left-click the three vertical dots on the left of the Transform View on the Viewport toolbar.
- Add the Sun and Environment nodes to the scene by left-clicking the Add Environment to Scene button at the bottom while holding down the Shift key.
- Left-click on the World node and...