Skip to content

3D Physics Engine

GDevelop provides a powerful 3D Physics Engine, allowing to create any kind of 3D games.

Tip

The 3D physics engine is powered by Jolt Physics a modern, performant, battle-tested, fully featured 3D physics engine used in AAA games, like Horizon: Forbidden West. It's perfect for making FPS, TPS, 3D platformers and in the future 3D racing games or any 3D game.

The 3D Physics Engine is available through:

  • A behavior 3D physics to apply to any 3D object of the physics world.
  • A dedicated behavior for 3D characters: 3D physics character.
  • A few behaviors add out of the box support for touch screens, gamepads and keyboard/mouse (see Move a 3D character with controls section).

Make ground, walls and platforms

Add the behavior 3D physics to the object and choose Static for the Type in the behavior properties. Static objects can't be moved though collisions nor forces.

Tip

For complicated structures like a bridge, you can use hidden objects to build the shape and add the 3D physics behavior to these objects instead of the bridge model.

Make pushable objects

When you want objects to be kicked out and fall, you should set the Type to Dynamic.

Move platforms or enemies

Platforms and enemies usually loop on the same path. They must not fall be pushed by other objects. Objects with the Kinematic type won't be moved according to physics rules. They can only be moved by changing their linear velocity and angular velocity. They can interact with other objects but only these other objects will move. The 3D ellipse movement behavior allow to easily move objects on ellipses or smoothly back and forth in one direction.

Tip

The 3D physics character can also be used for enemies that need to follow slopes or jump.

Move a 3D character with controls

The 3D physics character behavior allows characters to walk, jump, follow slopes and stick to moving platforms.

Tip

The Capsule shape is recommended for characters to avoid them floating over slopes.

Move a 3D platformer character

These behaviors make the character move according to player inputs automatically:

Open example in GDevelop

Move a 3D shooter ("FPS") character

These behaviors make the character move according to player inputs automatically:

Open example in GDevelop

Concepts used in Physics

This section is being written and will be available soon. In the meantime, you can refer to the descriptions for the 2D Physics Engine as most concepts are the same.

Reference

All actions, conditions and expressions are listed in the 3D Physics reference page.