Skip to content

Bullet Physics SDK: real-time collision detection and multi-physics simulation for VR, games, visual effects, robotics, machine learning etc.

License

Notifications You must be signed in to change notification settings

Ali-hey-0/Bullet-Physics-SDK

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎯 Bullet Physics SDK

PyBullet

Travis Build Status Appveyor Build status License: Zlib PyPI version

A powerful real-time physics engine for games, robotics, and simulation

Documentation β€’ PyBullet Forums β€’ Examples β€’ Contributing

🌟 Features

  • Real-time Collision Detection: Fast and accurate physics calculations
  • Multi-Physics Simulation: Support for rigid body, soft body, and fluid dynamics
  • Cross-Platform: Windows, Linux, macOS, iOS, Android support
  • GPU Acceleration: OpenCL support for high-performance computing
  • Python Bindings: Easy integration with machine learning frameworks
  • VR Support: HTC Vive and Oculus Rift integration
  • Robotics Tools: Inverse kinematics, motion planning, and control

πŸ“¦ Installation

PyBullet (Recommended)

pip3 install pybullet --upgrade --user

Quick Start Examples

# Try these examples to get started
python3 -m pybullet_envs.examples.enjoy_TF_AntBulletEnv_v0_2017may
python3 -m pybullet_envs.examples.enjoy_TF_HumanoidFlagrunHarderBulletEnv_v1_2017jul
python3 -m pybullet_envs.deep_mimic.testrl --arg_file run_humanoid3d_backflip_args.txt

πŸ› οΈ Building from Source

Windows

Using Visual Studio

# Clone repository
git clone https://github.com/bulletphysics/bullet3.git
cd bullet3

# Build using provided batch file
build_visual_studio_vr_pybullet_double.bat

# Open in Visual Studio
start build3/vs2010/0_Bullet3Solution.sln

Using vcpkg

git clone https://github.com/Microsoft/vcpkg.git
cd vcpkg
bootstrap-vcpkg.bat
vcpkg integrate install
vcpkg install bullet3
Linux

Prerequisites

sudo apt-get update
sudo apt-get install build-essential cmake python3-dev

Build

# Using CMake
./build_cmake_pybullet_double.sh

# Using Premake
cd build3
./premake4_linux64 --double gmake
cd gmake
make
macOS

Prerequisites

brew install cmake python3

Build

# Using CMake
./build_cmake_pybullet_double.sh

# Using Premake
cd build3
./premake4_osx --double --enable_pybullet gmake
cd gmake
make

πŸ’» Usage

Example Browser

./App_ExampleBrowser [options]

Command Line Options

Option Description
--start_demo_name="Demo Name" Start specific demo
--mp4=filename.mp4 Record video (requires ffmpeg)
--mouse_move_multiplier=0.4 Mouse sensitivity
--fixed_timestep=0.0 Physics timestep (0.0=real-time)

Controls

Key/Action Description
Mouse Click + Drag Pick and move objects
Alt/Ctrl + Mouse Camera controls
F1 Screenshot
ESC Exit

πŸš€ Advanced Features

GPU Acceleration

Requirements:

  • High-end GPU (AMD Radeon 7970/NVIDIA GTX 680 or better)
  • OpenCL-compatible drivers
  • Windows/Linux/macOS support

VR Integration

import pybullet as p
# Connect to VR sandbox
p.connect(p.SHARED_MEMORY)  # or (p.TCP, "localhost", 6667)

πŸ“š Citation

@MISC{coumans2021,
    author = {Erwin Coumans and Yunfei Bai},
    title = {PyBullet, a Python module for physics simulation},
    howpublished = {\url{http://pybullet.org}},
    year = {2016--2021}
}

🀝 Contributing

  1. Read our contribution guidelines
  2. Fork the repository
  3. Create a feature branch
  4. Submit a pull request

A powerful real-time physics engine for games, robotics, and simulation

Documentation β€’ PyBullet Forums β€’ Examples β€’ Contributing

🌟 Features

  • Real-time Collision Detection: Fast and accurate physics calculations
  • Multi-Physics Simulation: Support for rigid body, soft body, and fluid dynamics
  • Cross-Platform: Windows, Linux, macOS, iOS, Android support
  • GPU Acceleration: OpenCL support for high-performance computing
  • Python Bindings: Easy integration with machine learning frameworks
  • VR Support: HTC Vive and Oculus Rift integration
  • Robotics Tools: Inverse kinematics, motion planning, and control

[Previous sections remain the same...]

πŸ‘₯ Author

πŸ“„ License

This project is licensed under the zlib License.

πŸ™‹ Support


Maintained by Ali Heydari and the Bullet Physics community ❀️

About

Bullet Physics SDK: real-time collision detection and multi-physics simulation for VR, games, visual effects, robotics, machine learning etc.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published