⚙️

Introduction to 3D Physics in GDevelop

Apr 19, 2025

Notes on 3D Physics in GDevelop

Introduction to 3D Physics in GDevelop

  • GDevelop now incorporates a built-in 3D physics engine called Jolt.
  • Jolt is an open-source 3D physics engine used in various AAA games.

Adding 3D Physics Behavior

  • To add 3D physics to an object:
    • Select the object (e.g., a 3D box).
    • Add the 3D Physics behavior.
    • Choose the object type:
      • Dynamic
      • Static
      • Kinematic
    • Select the shape of the object:
      • Sphere
      • Box
      • Capsule
      • Cylinder
    • Tweak settings such as density and gravity scale.
  • Press apply to turn the object into a 3D physics object.

Previewing Physics in Action

  • Ground has been set to static, allowing for dynamic interactions with other objects.
  • Objects can be previewed in the game to observe physics behavior (e.g., boxes falling and bouncing off each other).

Using 3D Models

  • You can import 3D models from the asset store.
  • Assign a behavior:
    • Set it as Dynamic.
    • Change its shape according to the model (e.g., sphere for a ball).
  • Adjusting the density can significantly impact how objects interact (e.g., making a large ball easily knocked off by smaller boxes).

Game Mechanics Integration

  • The 3D physics behavior can be combined with game mechanics:
    • Use actions and conditions for more nuanced gameplay.
    • Example: Using a third-person camera and 3D platformer character extension to interact with 3D physics.
  • Players can push objects (e.g., boxes) off the level.

Future Developments

  • The 3D physics behavior is new and may undergo changes. Stay updated with the engine’s improvements.

Additional Resources

  • To explore more examples and functionalities, check the create tab in GDevelop.
  • Search for 3D to find game examples with updated 3D physics behavior.
  • For further learning, consult the provided video playlist.