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
1
vote
0 answers

bullet physics moving dynamic rigid body accuracy in C++

I have m_dynamicsWorld with 1 static object and 1 dynamic. I trying control dynamic rigid body in bullet physics. I change position every frame while button pressed: btTransform t; t.setOrigin(btVector3(pos.x, pos.y, pos.z)); …
vova
  • 63
  • 8
1
vote
1 answer

pygame bullet doesnt appear. bullet is invisble

My pygame programm has an issue. My bullet doesnt appear. But I know, that it exist. I tried many thing but nothing helped. I can let it appear but then my player and the bulle start flickering. Pls help. My character also has an moving animation.…
1
vote
1 answer

How do I make the bullets to shoot towards my mouse when I leftclick in this code?

import pygame import random import math from pygame import mixer pygame.init() screen = pygame.display.set_mode((1280, 720)) background = pygame.image.load('1264.jpg') background = pygame.transform.scale(background, (1290, 720))…
1
vote
0 answers

Finding pygame vector angle for bullet fire

I was working on a game in pygame and I wanted to create a bullet that could rotate it's image based on the angle of its pygame vector . Originally I wanted to do it with the vector that would be added to its position that gets calculated upon its…
1
vote
1 answer

Can't link to bullet physics library - LNK2019,LNK2001

I have built bullet3-3.08 on Windows using cmake (commands have been executed from the build folder created in the bullet3-3.08 directory): cmake -G "Visual Studio 15 2017" -A x64 -D "CMAKE_INSTALL_PREFIX:PATH=C:/MyLibs/bullet3-3.08" -D…
Irbis
  • 1,432
  • 1
  • 13
  • 39
1
vote
1 answer

Building bullet3 on Windows 10 - not all libraries installed

I have built bullet3-3.08 on Windows using cmake (commands have been executed from the build folder created in the bullet3-3.08 directory): cmake -G "Visual Studio 16 2019" -A x64 -D "CMAKE_INSTALL_PREFIX:PATH=C:/Workspace/MyLibs/bullet3-3.08"…
Irbis
  • 1,432
  • 1
  • 13
  • 39
1
vote
0 answers

How to simulate an object balancing on another in pybullet?

I am trying to simulate a ball balancing on a board with pybullet and openAI gym, but for now I am working with any shapes. I have the gym part down, but I am not sure how to approach this with pybullet. Here is an example of code I wrote up for one…
1
vote
1 answer

Error while running deepmimic example in pybullet with tensorflow

While running pybullet deep_mimic example which uses tensorflow and OpenAI gym and baseline packages, i ran into this error. The window appeared for a second with the bot and then crashed. I am running it with python 3.8 and tensorflow 2.3.1. I dont…
uniqueid
  • 175
  • 1
  • 10
1
vote
1 answer

Applying torque control in PyByllet makes object fly away from the secene

So I grabbed latest code from https://github.com/bulletphysics/pybullet_robots I modified laikago.py example to the following, I'm only controlling one joint using torque. Strangely enough poor robot flies away from the scene :) There are two ways…
m_kramar
  • 410
  • 4
  • 15
1
vote
1 answer

Amcharts 4: Ghost bullets/ duplicate bullets on chart reload

Bug description Hello. I just got this error where duplicate/ ghost bullets are created every time my chart reloads when there's is new data. I tried everything I could by doing a deep dive into the documentation but I couldn't get rid of these…
1
vote
1 answer

I have problem with bullet motion in pygame

When i shot i can control bullet in a fly. How can i avoid it. I want to bullet moved and i can't control it. Maybe i should to fix my code. But i can't solved it. For example bullet fly to right but when i pressed keys K_LEFT the bullet changes…
Anton
  • 13
  • 3
1
vote
1 answer

Hide/Show of Amcharts bullets doesn't work

I'm using amcharts4 to create large data charts (XY). I want to include two different types of bullets in it. Then these different types shall be switched on/off by the user. I managed to switch off, but not on again. As my real usecase loads a…
Hans Meyer
  • 47
  • 5
1
vote
1 answer

Bullet character is oversized on android

I'm using the bullet character \25Cf as a pseudo-element in my menu. It displays fine on Chrome PC but on Chrome Android the character is way too big. All the other text on the page is correctly sized... Here is the markup: The…
Ben Viatte
  • 485
  • 1
  • 5
  • 16
1
vote
1 answer

Is there a way to limit how many times a function can be called in PyGame?

I am programming a target shooter game for a school project. In the game, you click and a bullet flies from the player sprite to your cursor. I currently have programmed target drawing, player sprite drawing and a bullet function however I would…
j_yerbe
  • 111
  • 1
  • 9
1
vote
1 answer

group collide does not work on platform scroller with Pygame

I following this tutorial and I have added class Opponent() to class Platform() as shown here. Next I have been trying to add groupcollide_and_loop_for to the complete code so that the opponent is removed when hit by the bullet. I have been looking…
7beggars_nnnnm
  • 697
  • 3
  • 12