Questions tagged [bulletphysics]

Bullet (Bullet Physics SDK) 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.

From Bullet's main project page:

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: bullet (https://stackoverflow.com/tags/bullet/info)

338 questions
0
votes
1 answer

Why can't I use a functor as the comparator function in btAlignedObjectArray:quicksort?

This is my code: #include "btScalar.h" #include "btAlignedAllocator.h" #include "btAlignedObjectArray.h" class Comparator { btAlignedObjectArray items; // Edit: this member function is to be called from within the comparator int…
rraallvv
  • 2,875
  • 6
  • 30
  • 67
0
votes
1 answer

Can't solve undefined references

I have the following errors when compiling in Eclipse: make: *** [ogre-bullet-playground] Error 1 undefined reference to `btCapsuleShape::btCapsuleShape(float, float)' undefined reference to `btRigidBody::btRigidBody(float, btMotionState*,…
Pacha
  • 1,438
  • 3
  • 23
  • 46
0
votes
2 answers

Removing a rigid body, but still getting collisions for it

What is the correct way to remove a rigid body, I am doing just this to remove it: void removeRigidBody(btDynamicsWorld* pDynamicsWorld, btRigidBody* rb) { pDynamicsWorld->removeRigidBody(rb); delete rb->getMotionState(); delete…
weston
  • 54,145
  • 21
  • 145
  • 203
0
votes
1 answer

Clamp rotatation angle of a rigid body

I recently attached a rigid body to the camera in my 3d game, so that it can collide with the environment. By now mouse movement directly rotates the rigid body. #include void Rotate(float Pitch, float Yaw, float…
danijar
  • 32,406
  • 45
  • 166
  • 297
0
votes
2 answers

Corona SDK Physics goes on and off while object is in motion

Below is my main file. essentially what is happening is that the collision is working when the "rect" object is not moving but as soon as i move the rect object, the collision stops taking affect. I think that it knows it is colliding but it does…
Marius Ndini
  • 33
  • 1
  • 5
0
votes
1 answer

How to enable SSE/SSE2 on Code::Blocks?

So I was trying to compile some code (Bullet Physics demos to be specific), and an error came up that said SSE and SSE2 were not enabled. I checked the compiler flags in Code::Blocks, and SSE/SSE2 were not on there. I tried to put the flags in…
BananasGoMoo
  • 68
  • 2
  • 10
0
votes
1 answer

Panda3D: How to orient BulletGenericConstraint?

By default, the BulletGenericConstraint in Panda3D is oriented along positive X axis. The setAngularLimit method can be used to set only along X, Y or Z axis. How do I join two bodies which do not lie orthogonal to any of the axis by a…
Ashwin Nanjappa
  • 76,204
  • 83
  • 211
  • 292
0
votes
1 answer

Bullet Physics Headers : No such file or directory

When I try to use a header file in my project ( I created the .a files and linking before), I get the next error: fatal error: : No such file or directory I create the libraries .a following this…
user1873578
  • 111
  • 1
  • 1
  • 4
0
votes
1 answer

Physics-based Walking (from A New Zero)

I saw this video and I was amazed, and naturally, I want to try to do it myself. http://www.youtube.com/watch?v=P_DeZUg9HiY Does anyone have any idea how he made the character walk? Look at the video at 1:15. What kind of Bullet physics constraints…
winduptoy
  • 5,366
  • 11
  • 49
  • 67
0
votes
2 answers

How to do physics simulation in Irrlicht?

Does Irrlicht have good physics simulation? I saw it has collision detection but can it animate objects so they fall over, bump into each other and stuff like that? If it doesn't, can you use a physics engine like bullet in addition to Irrlicht,…
alfalfa
  • 147
  • 1
  • 8
0
votes
3 answers

How short int based masks work in C++ library Bullet?

How do short int based masks work in c++ (for example ones in Bullet)? I look at Bullets CollisionFilterGroups { DefaultFilter = 1, StaticFilter = 2, KinematicFilter = 4, DebrisFilter = 8, SensorTrigger = 16, CharacterFilter = 32,…
myWallJSON
  • 9,110
  • 22
  • 78
  • 149
0
votes
1 answer

OgreBullet incorrect HeightmapCollisionShape shape scale?

I am trying to load a HeightmapTerrainShape in OgreBullet by (mostly) using the demo code, but my terrain mesh is offset from the HeightmapTerrainShape. I have no clue why this is happening. This is my code: void…
Nik
  • 1,033
  • 2
  • 11
  • 28
0
votes
1 answer

Augmented Reality + Bullet Physics - trouble with rayTest/Ray picking

I am trying to pick objects in the bullet physics world but all I seem to be able to pick is the floor/ground plane!!! I am using the Vuforia SDK and have altered the ImageTargets demo code. I have used the following code to project my touched…
0
votes
0 answers

Creating a movie with Bullet Physics

I am trying to make a movie from my bullet demo. To do that, I want to store an image every timestep, and create a movie using ffmpeg. I need the simulation to advance only one step at a time. For that, I am…
Sara
  • 833
  • 2
  • 9
  • 21
0
votes
1 answer

How to make spheres rotate in bullet3d

I am using the FallingCubes demo in Bullet3D and noticed that the cubes rotate when they collide. However when I change the program to use spheres (btSphereShape), they do not rotate. Note that I am using the iphone sdk for this. Does anyone have…
dr_pepper
  • 1,587
  • 13
  • 28
1 2 3
22
23