Questions tagged [bullet]

The Bullet Physics Library is an Open Source collision detection and rigid body dynamics library. The library is free for commercial use and open source under the ZLib License. **Do not use this for bullet points. Use [bulletedlist] instead. For bulleted lists in HTML, use [html-lists]. For generic bullet/projectile calculations use the [projectile] tag.**

From Bullet's main project page:

The Bullet 3D Game Multiphysics Library provides state of the art collision detection, soft body and rigid body dynamics.

  • Used by many movie and game companies in AAA titles on Playstation 3, XBox 360, Nintendo Wii, PC and iPhone
  • Modular extendible C++ design with hot-swap of most components
  • Optimized back-ends for pthreads/Win32 Threads multi-threading and PS3 Cell SPU
  • Preparation for OpenCL data parallel optimizations for upcoming Bullet 3.x

Bullet Collision Detection can be used on its own as a separate SDK without Bullet Dynamics:

  • Discrete and continuous collision detection (CCD)
  • Swept collision queries
  • Ray casting with custom collision filtering
  • Generic convex support (using GJK), capsule, cylinder, cone, sphere, box and non-convex triangle meshes.
  • Support for dynamic deformation of non-convex triangle meshes, by refitting the acceleration structures

Multi-physics support including:

  • Rigid body dynamics including constraint solvers, generic constraints, ragdolls, hinge, ball-socket
  • Support for constraint limits and motors
  • Soft body support including cloth, rope and deformable
  • Bullet is integrated into Cinema 4D, Lightwave, Blender and Carrara, and plugins for Maya, Houdini and 3ds Max are available
  • Serialization of physics data in the cross-platform binary .bullet file format

The library is free for commercial use and open source under the ZLib License.

Project page at GitHub: https://github.com/bulletphysics/bullet3 Other tags: bulletphysics (https://stackoverflow.com/tags/bulletphysics/info)

288 questions
4
votes
7 answers

Using C++ API in C?

One day I decided to start writing a video game in plain old C. It was a lot of fun, and three months later (I sometimes have little time away from the job) I found myself in the need of some physics engine. I decided to use Bullet physics engine,…
buddhabrot
  • 1,558
  • 9
  • 14
4
votes
1 answer

Move an object towards a target in PyBullet

I'm pretty new to PyBullet and physics engines in general. My first step is trying to get one object to move towards another. import pybullet as p import time import pybullet_data DURATION = 10000 physicsClient = p.connect(p.GUI)#or p.DIRECT for…
Brian Dolan
  • 3,086
  • 2
  • 24
  • 35
4
votes
0 answers

Bullet physics stops collision after a while

I am trying to use bullet physics library in my opengl game engine for collision detection. I am not trying to do anything complicated, I only want to know when things collide in the 3d world. I am only using box shapes and I have no interest in…
456panos
  • 55
  • 2
4
votes
1 answer

How to make a spring constraint with Bullet Physics?

I want to test the spring contraint of Bullet Physics. So I created a static box hovering above the ground and a second dynamic box hanging down from it. But activating the spring behavior does nothing! The box is indeed hanging freely. I know it…
M. Winter
  • 416
  • 3
  • 15
4
votes
1 answer

Using btSoftBodyHelpers::CreateFromTriMesh with trimesh

I've been trying for a while to get support for softbodies in my project, I have already added all primitives, including static triangle meshes as you can see below: I've now been trying to implement the softbodies. I do have triangle shapes as I…
IAmNoone
  • 1,011
  • 1
  • 8
  • 25
4
votes
1 answer

CMake: Overriding a find module

I was wondering if there is any possibility to override an existing (shipped with CMake) find module with my own? This is so I can supply my slightly updated module with my project without forcing anyone to replace the one that is shipped with…
prayforbacon
  • 165
  • 5
4
votes
1 answer

VS2010 debugging with command-line arguments

I've set the command line args for my app in the project properties -> debugging -> command arguments section. If I run the program from command line directly I do: progname arg1 arg2 So I've set the command line arguments in VS to arg1 arg2, as…
ChrisC
  • 892
  • 2
  • 12
  • 33
4
votes
4 answers

Can't compile a simple Bullet Physics application

I'm trying to compile the Hello World program from the Bullel Physics Wiki in Visual Studio 2012 Express. I was able to generate and import the three library projects needed to run the example, but there seems to be a problem when linking them. In…
rrrrrrrrrrrrrrrr
  • 344
  • 5
  • 16
3
votes
2 answers

ActionScript 3: Bullet Ricocheting

I've been having a problem with my Actionscript code. I am fairly new to Flash and AS3, so I apologize if my code seems crude or rudimentary, but I'm doing this as best as I can. Well, in this project I'm trying to get a bullet to ricochet off a…
Lucas
  • 43
  • 5
3
votes
1 answer

How to apply rotation to a body in Bullet Physics Engine?

I have rotation values (roll, pitch, yaw). I would like to apply that rotation to a body, but I have no idea how to do that.
Ricardo Sanchez
  • 4,935
  • 11
  • 56
  • 86
3
votes
1 answer

What is slowing down RigidBody?

I have created a very simple scene with just a single RigidBody in it. My whole code is below: extends RigidBody func _ready(): self.apply_central_impulse(Vector3(1, 0, 0)) self.gravity_scale = 0 self.linear_damp = 0 self.friction =…
elmo
  • 1,189
  • 1
  • 10
  • 35
3
votes
2 answers

How to translate camera in pyBullet

Currently in debug visualizer, I know I can drag the mouse to swivel the rotation of the camera. Additionally, I can use the mouse wheel to zoom in and out. But what about translating the camera? Say, along the XYZ world frame axises. Or even along…
user3180
  • 1,369
  • 1
  • 21
  • 38
3
votes
1 answer

How do I use Ammo.btCompoundShape (JavaScript port of Bullet Physics)?

I'm using Ammo.js, a direct JavaScript port of C++ Bullet Physics. The unfortunate result being that the documentation is C++, not great reading if your languages are Python and JavaScript. I have the documentation for Ammo.btCompoundShape here but…
J.Todd
  • 707
  • 1
  • 12
  • 34
3
votes
1 answer

Ammo.js custom mesh collision with sphere

I'm trying to generate collisions for every object/mesh. They are all static and should collide with a ball/sphere, which is dynamic. My code looks like this: const transform = new Ammo.btTransform(); transform.setIdentity(); transform.setOrigin(new…
GTX
  • 727
  • 2
  • 13
  • 30
3
votes
2 answers

How to control individual bullets in pygame

I am trying to create a 2D side shooting game. For bullets, I am using a list so everytime I shoot a bullet gets appended to that list and I "draw" the list on the screen. Whenever the bullet gets out of screen I delete that bullet off the list.…
Leo Feng
  • 59
  • 8
1
2
3
19 20