Bepu Physics
Warning
These pages are being updated. Bullet Physics is being phased out. We no longer plan to support or expand its features as our focus shifts to Bepu Physics. We recommend transitioning to Bepu Physics for access to the latest updates and ongoing improvements.
Stride simulates real-world physics such as gravity and collisions using "Bepu physics". This section explains how physics components work, how to add them to your project, and how to use them with scripts.
In this section
- Configuration: Setting up Bepu
- Simulation: Managing the simulations parameters
- Collidables: The physics objects in your game world
- Statics: Strong immovable objects like walls, floors, large rocks, and so on
- Bodies: Objects that can be knocked around, cans, balls, boxes ...
- Kinematic Bodies: Entities which are moved programmatically, moving platforms, doors, ...
- Characters: Creatures which are moved programmatically, the player character, animals ...
- Collider Shapes: Define the geometric shape of yours collidable components
- Triggers: Use triggers to detect passing objects
- Constraints: Join physics objects together, constrain them around points
- Physics Queries: Operations to find objects in the scene
- Physics Update: Updating logic alongside physics
Tutorials
- Physics tutorials
- Create a bouncing ball: Use the static collider and rigidbody components to create a ball bouncing on a floor
- Script a trigger: Create a trigger that doubles the size of a ball when the ball passes through it
Additional physics resources
- Stride integrates the open-source Bepu Physics engine.
- Explore the official Bepu website
- Watch demos on the Bepu YouTube
- For solutions on mitigating physics jitter, refer to our guide on Fixing Physics Jitter