Practicing Physics and Handling Navigation in Godot 4
In this chapter, we start by looking at the effect that the GPUParticlesCollisonHeightField3D node has on 3D terrain. We will use the GPUParticlesCollisonHeightField3D node with some 3D terrain and create snow with particles to see how it interacts with the 3D terrain. With the new CharacterBody2D and CharacterBody3D that replaced kinematic bodies, we will create a 2D and 3D player.
We will see how easy scripting the CharacterBody is compared to Godot 3.x. We will look at the NavigationServer for 3D and 2D projects. Lastly, we will make a banner to show how the SoftBody3D nodes work.
In this chapter, we will cover the following recipes:
- Using Heightmap for 3D terrain
- Setting up and moving the CharacterBody in 2D
- Setting up and moving the CharacterBody in 3D
- Using the new NavigationServer for 3D
- Using NavigationServer2D for 2D projects
- Using SoftBody for 3D games