Bullet Physics Pitfalls¶
Physics behavior depends on the backend, scale, collision shapes, timestep and object speeds. These historical troubleshooting notes are starting points: reproduce a problem with your selected physics module before applying a workaround.
Sweep Test Issues¶
Sweep tests report intersections along a shape's movement between two transforms. The previous version of this page recommended a minimum sweep distance and warned about shapes starting inside another object. These observations are not universal API guarantees; test short sweeps and initial overlaps with your chosen backend and use a separate overlap test if your application needs one.
Ghost Control AABB Collision only¶
As the javadoc for PhysicsGhostObject says, the ghost object collision detection uses AABB (Axis-aligned bounding box) collision only, regardless of the collision shape it has been assigned.
Possible alternatives: use PhysicsSpace.sweepTest() or kinematic physics objects with collision listeners.
Rigid bodies fall through ground¶
Fast-moving bodies can tunnel through other objects between simulation steps. Check the timestep, object speed, shape scale, and continuous collision detection options supported by your physics module.
Things to investigate:
-
Check whether simplifying or subdividing a collision mesh improves your specific case.
-
Test alternative collision shapes where appropriate; a large box does not automatically require subdivision.