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

AS3 - Coloring bullet trails

I'm building a shmup (bullet hell, shoot 'em up), and using bitmap data for all of the art. I store a vector of bitmapDatas with different colors and pull the color I need from the vector to color a square for a particle (bullets, hit particles,…
Evan Ward
  • 1,371
  • 2
  • 11
  • 23
0
votes
1 answer

How to deactivate translation on collision?

What I want to do I want to have my player / character moves simultaneos with an rigid body. When my character collides with another RB, the other rb shall move - but not my character. What I want to know Is it possible to deactivate the translation…
Lucas
  • 3,376
  • 6
  • 31
  • 46
0
votes
1 answer

Character foot stuck to the floor using Bullet2.82

I'm using bullet 2.82 (double precision) with a fixed simulation time step of 1ms. I use the following code to setup the world: collision_config = new btDefaultCollisionConfiguration(); dispatcher = new…
themarex
  • 909
  • 7
  • 16
0
votes
1 answer

Shooting in Box2D (LibGDX)

What values should I set to: 'setLinearVelocity(x, y);' to object body, if I want to shoot it from the center of the player body to the location of my mouse? I have these variables available: mouseX, mouseY, playerX, playerY.
Vilda
  • 1,675
  • 1
  • 20
  • 50
0
votes
1 answer

SDL 2 bullet collision not working?

I'm new to SDL 2 and I've been stuck on a collision detection between a bullet and a spaceship for some time. I understand what has to happen, but I'm getting confused with what collides with what, and which way around to put the code. The collision…
Tom
  • 2,372
  • 4
  • 25
  • 45
0
votes
1 answer

rollingfriction in bullet 3d not behaving like demo

Situation I'm making a billiards simulator and have a static btBox representing the table surface with btSphere's as the balls. In the demo, both the ground (table surface) and the btSphere's are given positive values for rolling friction, 1.0 and…
tkefauver
  • 491
  • 5
  • 19
0
votes
2 answers

AS3 Turret and bullet error

I have been struggling with a as3 and flash game that i am trying to make. Everything looks fine, but still the bullet are stuck inside the cannon. When i use my mouse to shoot, instead of going out to a location, it just get stuck inside the…
0
votes
1 answer

Problems setting up Libgdx Bullet wrapper for Android

I am new to Libgdx and Bullet Physics, and have been unable to get Bullet to work on my Android device. I have gotten the same program to work on the Desktop version, and have copied the libgdx-bullet.so files to armeabi and armeabi-v7a, but the…
user3264431
0
votes
1 answer

get direction vector from btScalar matrix

I have created a bullet vehicle with a compound as the chassis and the compound is formed of 2 bodies, a chassis and a turret. I can obtain the turret transform and opengl matrix like this: // get chassis and turret transforms btTransform…
bogdan.css
  • 355
  • 6
  • 17
0
votes
1 answer

Does btGhostObject allow use of complex meshes (not only AABB)?

It is sad in its docs: The btGhostObject can keep track of all objects that are overlapping By default, this overlap is based on the AABB This is useful for creating a character controller, collision sensors/triggers, explosions etc Does it mean…
DuckQueen
  • 772
  • 10
  • 62
  • 134
0
votes
1 answer

Need some assistance with moving an enemy bullet animation down the screen

I need help figuring out why the enemy bullets won't move when they have identical code... Please help... I didn't make either one as a separate class just simple animations Now I think that you can see when I say they have identical code, I mean…
iibinxx
  • 13
  • 3
0
votes
0 answers

Bullet physics: how to make a soft body "static" (kind of)?

I'm fairly new to Bullet and started using it a week ago. I mainly played with rigid bodies and everything works as expected but now that I also need to add soft bodies into my simulation, things got a bit complicated. What I want: I have to create…
0
votes
2 answers

Not sure how to implement a bullet system in Java Slick game?

So, I have been following tutorials on a Slick API 2D Game Java tutorial, and I got the basics of how to use the API. But then, when I was playing around and trying to make a game. I tried to implement a bullet/firing system into my 2D space shooter…
user1975231
  • 45
  • 1
  • 8
0
votes
1 answer

Multi Direction Bullets[read]

Been trying to code something for a while for a project im still working on for school, even though it's done. I want to make a grenade that shoots out bullets on enemies colliding with it, but what I need help with atm is making 8 bullets shoots in…
user1766351
  • 97
  • 1
  • 1
  • 4
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