Doc:Manual/Game Engine/Python API/Bullet physics

From BlenderWiki

Jump to: navigation, search

If you want to document Blender 2.5 features please edit pages under Doc:2.5/Manual.
If a "2.5" page doesn't exist please copy the text from 2.4x Manual and edit the new page (i.e. you should paste the wikitext from this 2.4x page to this new 2.5x page and then update the latter with 2.5 features)


[edit] Bullet physics Python API

Bullet Physics provides collision detection and rigid body dynamics for the Blender Game Engine. It takes some settings from Blender that previously were designed for the former collision detection system (called Sumo).

However, new features don’t have an user interface yet, so Python can be used to fill the gap for now.

Features:

  • Vehicle simulation.
  • Rigid body constraints: hinge and point to point (ball socket).
  • Access to internal physics settings, like deactivation time, debugging features.

Easiest is to look at the Bullet physics demos, how to use them. More information can be found here.

Python script example:

import PhysicsConstraints
print dir(PhysicsConstraints)






Contents