4

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 ...

Get Godot 4 Game Development Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.