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
0
votes
2 answers

C++11 way to reset a struct to null?

I am learning a physics library and it involves creating info structs and then passing them to initialiser functions: btRigidBodyConstructionInfo rbInfo = (/*values...*/); btRigidBody* rigidBody = new btRigidBody(rbInfo); Now I want to reset the…
Zebrafish
  • 11,682
  • 3
  • 43
  • 119
0
votes
1 answer

Getting buggy ConvexHullShape from a g3dj/g3db file although it works with wavefont (obj) in libGDX

I recently played around with libGDX & Bullet and had trubble getting a working ConvexHullShape from a g3db file (created in Blender and converted afterwards with the fbx-converter following the tutorial). So I loaded it into the ConvexHullTest what…
Nijco
  • 21
  • 4
0
votes
1 answer

How can I remove/edit an anchor added with appendAnchor?

I'm using ammo.js with ThreeJS. I've searched inside the get_m_cfg/set_m_cfg for clothSoftBody using the console.log command to no avail. Is there a way to remove or edit a softbody anchor added like this? clothSoftBody.appendAnchor( 0,…
M1ke
  • 239
  • 2
  • 11
0
votes
0 answers

Universal way to create bullet list

We're developing an app in Swift with al lot of bullet point lists. I know how to create the bullets (\U2022, since I'm using localized strings). I also know how to pick a particulair string and create an attributed string which takes care of…
Martinos
  • 1
  • 2
0
votes
1 answer

How to disable selection of parts in textView?

Imagine I have text with bullets. List item 1 List item 2 List item 3 How can I disable selection of the bullets? To select only the text: List item 1 List item 2 List item 3 Or event to be able to select 2 paragraphs, but without their bullets?…
Altimir Antonov
  • 4,966
  • 4
  • 24
  • 26
0
votes
0 answers

How to achieve maximum simulation accuracy in Bullet?

I'm simulating rope to rope collision in Bullet and I'd like it to be as accurate as possible. I don't need the simulation to be real-time. Rope consists of rigid bodies connected using constraints(e.g. btConeTwistConstraint). Which settings do I…
Dmitriy
  • 5,357
  • 8
  • 45
  • 57
0
votes
2 answers

Adjusting initial bullet angle to match user set distance(scope zero) (for math gods)

So my question is pretty specific, which means it was pretty hard to find anything that could help me on google or stackoverflow. I want to give users the ability to set the distance/range on their guns. I have almost everything I need to make this…
0
votes
1 answer

Target velocity on bullet physic (python interface)

I'm new to Bullet. I'm using pybullet and want to make a car. I'm using this standard URDF-model for modelling the car. I want my car to go, for example, at a speed of 20 in the straight direction. I can write: p.resetBaseVelocity(car, [20, 0,…
Naduxa
  • 55
  • 1
  • 11
0
votes
1 answer

How can I convert a bullet transform to glm matrix without copying data?

I have a bullet transform and i would like to make it accessible as glm::mat3 type. However, I am wondering if there is a good to way to do that without copying (like make_mat3x3).
JE42
  • 4,881
  • 6
  • 41
  • 51
0
votes
2 answers

Disable every collision for one body

I'm working with Bullet and OpenGL and basically I have one body, that I want it to appear in the screen but not to suffer collisions. It only has to be visual. I'am creating the object like this: btBoxShape* colShape = createBoxShape(btVector3(1,…
aserrin55
  • 350
  • 5
  • 15
0
votes
1 answer

CPU usage: Bullet vs Box2d engines

I've been using the 2d library jbox2d for some time now and been recently looking into the bullet 3d physics engine. What I'm wondering is what the CPU consumption on a typical quad core, say i5 (I assume bullet is multi threaded?) is going to…
bigcodeszzer
  • 916
  • 1
  • 8
  • 27
0
votes
1 answer

Bullets in BulletPhysics

What would be the best way to simulate bullets in bulletphysics? Small capsule bodies? Some sort of ray tracing? Something else? Some example code would be nice, if possible.
user406009
0
votes
0 answers

Mapping Bullet phyics coordinates to OpenGL

I've been using the Bullet physics engine with OpenGL to visualise my simulations. I currently have a very simple simulation of a cube that has an initial horizontal and forward velocity that falls down from the sky and collides with the walls of a…
infraed
  • 23
  • 1
  • 4
0
votes
1 answer

Collision Detection in Libgdx without physical response

I my game on android I would like to let my player collide with an invinsible object. This collision should be detected, but it shouldnt actually stop the player. He should just be able to "go through". I'm sure this is possilbe in libgdx but i cant…
member2
  • 155
  • 2
  • 16
0
votes
1 answer

Bullet to detect collision detection

Actually, I'm currently working on a simple project to detect collision between 2 specific objects in a surgery scene. The problem is that I don't have background on such problems so I'm really newbie to such things and I don't know yet what to do.…
Maystro
  • 2,907
  • 8
  • 36
  • 71