Skip to main content

Questions tagged [bullet-physics]

Bullet is a professional, free 3D Game Multiphysics Library that provides state of the art collision detection, soft body and rigid body dynamics.

Filter by
Sorted by
Tagged with
0 votes
0 answers
22 views

Custom Physics Engine::Impulse Based Contact Resolver::Facing Object crawling issue when doing Box vs Box Collision

I am trying to implement basic stable 3d physics engine, I was able to get collision phase working with SAT but when I am applying impulses on box vs box contact points, I face a crawling issue. ...
1 vote
1 answer
50 views

Issue with CompoundShape Scaling in BulletSharp/Assimp Integration

I’m trying to create a CompoundShape using BulletSharp and Assimp for my 3D physics engine. ...
1 vote
1 answer
778 views

Passing heightmap data to btHeightfieldTerrainShape constructor

I was searching for a couple of hours, but I didn't find final solution, after trying many ways. I'm trying to get heightmap heights data, and pass it to btHeightfieldTerrainShape. Let's say my ...
1 vote
2 answers
61 views

Bullet Physics stopping model from going through static object

Bullet physics tunneling problem: yellow box(dimensions: 2f, 2f, 2f) that falls under gravity. Its Bullet Physics are set as such: ...
1 vote
0 answers
31 views

Issue with Bullet3 contact points on triangle edges

I'm trying to build a character controller using Bullet3 with OpenGL. I currently have a kinematic body that uses a Ghost body to get all the manifold contacts. The issue I'm facing is in the ...
0 votes
0 answers
53 views

How to move a Rigidbody forward using Bullet Physics

I'm currently developing a character controller for my game framework, and I'm utilizing the Bullet Physics engine for the physics simulation. In the process of adjusting the velocity, I aim to enable ...
1 vote
1 answer
131 views

When should I call the physics simulation within the game loop?

I am thinking about where to call the physics simulation. The current situation is that I first update the entities and then the physics immediately before rendering. As you can see in the following ...
0 votes
2 answers
86 views

How to check if an AABB is colliding or the mesh itself

I have the following problem. I would like to check in bullet whether only the AABB collides or the mesh collider itself. Unfortunately I can't find out how to do this Within the screenshot you can ...
1 vote
0 answers
55 views

JBullet - Shoving around objects

Sometimes in video games the players can walk up to certain objects for example boxes and barrels and shove them around. How can I recreate this system? What function do I have to use to apply force ...
0 votes
0 answers
62 views

Bullet physics incorrect rotation with more than one axis

im try to integrate currently bullet into my game framework. But when i try to set the rotation for an rigidbody with more the 1 axis i recive the current result It looks that the rotation is ...
1 vote
2 answers
235 views

Bullet Physics Multi-threading Rigid Body transform jittering issues across threads

I've been working on a game using Bullet Physics for C++ as well as SDL for the windowing (with OpenGL) I've recently threaded the game, so that a separate while loop runs the Physics Simulation, ...
0 votes
1 answer
76 views

How does bullet physics filter 4+ contacts in GJK?

If the bullet GJK (Convex vs convex) collision algorithm has more than four penetrating points, then how is it filtering that down to the four it needs? What I've tried Staring at the code, but I get ...
0 votes
1 answer
83 views

Bullet physics linker error

I am trying to build my project in VS, which is a copy of HelloWorld.cpp provided by Bullet. I am getting a list of errors of sort "unresolved external symbol" when I build my project, ...
0 votes
1 answer
29 views

Maintain constant Y position value for a dynamic body

Something obvious is skipping my mind with Bullet Physics library, so apology in advance: I have a dynamic rigidbody, which I'd like to have its Y (up/down) coordinate to be at constantly at a certain ...
0 votes
1 answer
679 views

Bullet: btCollisionWorld::contactTest doesn't work

I added some boxes in a collision world, then use btCollisionWorld::contactTest to test if any box contact with a given sphere. Below is the code: ...
3 votes
3 answers
3k views

What torque should I apply in Bullet to maintain a vertical orientation?

I have a RigidBody in Bullet. Each frame, I want to apply torque to correct its orientation toward an upright position (i.e. near-zero pitch and roll). I know its ...
2 votes
2 answers
377 views

Understanding HingeConstraint in jBullet

I'm using the java port of BulletPhysics engine jBullet. I'd like to make a joints between 2 triangles so that one edge of the first and one edge of the seconds act like a hinge. But I don't ...
0 votes
1 answer
43 views

Having trouble with btGeometryUtil::isPointInsidePlanes

I'm in the process of parsing a BSP file to create btConvexHullShape objects for each brush. I've seen a few examples of how to do this on Github and they all use the getVerticesFromPlaneEquations ...
2 votes
1 answer
998 views

How do I create a HeightField in pybullet?

I've been looking for documentation on PyBullet, the python implementation of Bullet, but I haven't yet found a way to implement the btHeightfieldTerrainShape collision object, which I need to make, ...
0 votes
1 answer
296 views

Why does OnTriggerEnter2D/OnCollisionEnter2D work when there is no other collider object opposite?

my bullet: There is a Box collider (checked "is Trigger") It has Rigidbody2D (Gravity = 0, freeze rotation Z) https://i.sstatic.net/ik1IY.jpg I added the "OnTriggerEnter2D" ...
0 votes
1 answer
3k views

Raycasting in GameMaker Studio 2 to implement hitscan weapons?

I'm working on a 2D top-down shooter game in GameMaker Studio 2, featuring different weapons and obstacles all around the levels. Since I don't need a high degree of simulation, I'm implementing ...
1 vote
1 answer
122 views

How to detect all vertices within collision Area?

Using collision detection algorithms such as MPR (Minkowski Portal Refinement), GJK (Gilbert–Johnson–Keerthi distance algorithm), you can calculate the penetration depth in the collision. For 2 mesh ...
2 votes
1 answer
1k views

Simulation step size in a physics engine

I am trying to integrate a physics engine (Bullet) into my game engine, but I immediately found that I do not know how big should I make the simulation step. I think of 2 options: Use a fixed step ...
3 votes
0 answers
310 views

How can I make bodies that do not stick to the wall in Bullet Physics? [duplicate]

Possible Duplicate: Physics engine recommendation which can simulate pool game correctly? I made a Billiards scene with Bullet Physics, but I've got a problem. When the ball is slowing down near ...
0 votes
1 answer
1k views

How to move a player on a sphere surface using Ammo.js and Three,js

I am moving a rigidbody (the character) on the surface of a sphere, like what is described here. I am facing the following issue that I am having hard time to solve: After moving the character, it ...
0 votes
4 answers
2k views

Calculate damage values from bullet velocity and size

I'm trying to make a top-down game using Javascript and Pixi which involves multiple different guns. Instead of giving each gun an individual damage value, I wanted to calculate the damage by the ...
0 votes
0 answers
125 views

LibGDX program crashing on on StepSimulation call

I am trying to add a Character Controller to a Discrete Dynamics World in Bullet via the LibGDX wrapper and everything seems to work, but when I attempt to update the world via the StepSimulation ...
0 votes
0 answers
126 views

How to create soft tires like in `Spintires`?

Here is an screenshot of a deformed tire in the game Spintires. I would like to achieve a similar effect in my game I'm using Bullet as the physics library, if that matters.
1 vote
1 answer
433 views

PyBullet & OpenGL - Rotations are reversed in OpenGL [closed]

Project description: I am writing a basic game engine to help with my PhD topic on multi-agent learning. I am using PyBullet as the backend physics engine and OpenGL for visual display. I have OpenGL ...
1 vote
0 answers
117 views

Subtract a circle on a rectangle - OpenGL

I am writing a game using GLFW, GLEW, GLM and Bullet3 in C++. Its a Maze with holes. I am doing the floor with rectangles (wich is 2 GL_TRIANGLES). I want to make some woles (circles), to the ball ...
0 votes
1 answer
159 views

Bullet Physics Invalid Pointer on Free

I'm writing a game engine in C++ with Irrlicht and Bullet Physics. All of my Irrlicht code works perfectly, but upon creating Bullet Physics objects with new, and later freeing them, my program throws ...
0 votes
1 answer
360 views

Bullet Physics Step Simulation Crash when maxSubSteps is not 0

I am using Bullet physics along with Irrlicht. My program consistently crashes when maxSubSteps is not set to zero when calling ...
-1 votes
1 answer
149 views

Can't get basic example working with Bullet 3 (haxebullet port)

Example of my code: ...
1 vote
0 answers
135 views

Real-time 3D Scene-reconstruction into Physics Engine

I am trying to create a game where the user scans the room using RGBD camera and reconstructs 3D scene. This scene would be integrated into physics engine, after an object recognition algorithm tells ...
1 vote
0 answers
246 views

Bullet Physics stops detecting collision after a few steps

Let me start off by saying that the usage of Bullet here is slightly unconventional. I'm writing a server emulator for a game, and the server is only keeping track of the triggers, players and enemies....
0 votes
1 answer
236 views

bullet raycast vehicle - understanding coordinate system

Bullet world space coordinate system is the same as opengl world coordinate system. I have noticed that raycast vehicle has the following function: ...
2 votes
1 answer
222 views

Should your world map have it's own collision object?

I am attempting to understand collision detection at the moment. I have seen many examples of a simple flat plane with boxes or cubes which move around on the plane and react when the touch each other ...
2 votes
1 answer
125 views

Angle between character and mouse, and giving bullets velocity in the correct direction

I've been trying to work for a few days, on a little weapon system where you can aim with your mouse and shoot bullets in the direction you're aiming. This is all in 2D to be clear. Right now, I can ...
0 votes
1 answer
307 views

Soft Body rendering from OBJ model

As part of my master thesis I have to do an softbody simulation. I 'm using Bullet Physics engine. I'm trying to render softbody, create from Meshes, with Shaders in OpenGL but the object doesnt ...
1 vote
0 answers
118 views

Bullet Physics ignore collision from bottom

I'm currently using BulletSharp a wrapper for Bullet physics. I'm using Bullet Physics for a 2D project. Many platform games allow the player to pass through a platform as they jump upwards, and then ...
1 vote
0 answers
499 views

Bullet physics convex hull center of mass

I am trying to make a convex hull collider for bullet physics. I am using BulletSharp.CompoundShape and BulletSharp.ConvexHullShape. This is model of a chair in unity with rigidbody and convex mesh ...
0 votes
1 answer
389 views

Bullet Physics DebugDraw Unexpected Results

I'm integrating Bullet Physics into my project for collision detection and have just gotten some debug draw functionality to work. However, the results are not what I'm expecting. I have tried to draw ...
1 vote
0 answers
318 views

Bullet Physics StepSimulation really slow when smaller TriangleMeshShape is inside bigger BoxShape

I observed that bullet physics StepSimulation is very very slow when a rigidbody with a TriangleMeshShape is fully inside a rigidbody with a simple BoxShape. I noticed that when I move the ...
0 votes
0 answers
209 views

Solve Constraints with linear factor of 0 in Bullet Physics

In my code I need to set the linear factor for velocity to 0 (sometimes). For example, game->rigidBody->setLinearFactor(btVector3(0, 0, 0)); When this is done,...
1 vote
0 answers
146 views

btBvhTriangleMeshShape useQuantizedAabbCompression Crash

I use btBvhTriangleMeshShape for static world collision. Generally this works fine, but recently I have encountered situations where the construction of btBvhTriangleMeshShape would crash. In debug ...
2 votes
0 answers
102 views

Handling strange physics behaviour while sliding between coplanar surfaces

We've got a character setup based around manually resolving collisions, and we're using bullet to do so. Our characters have a kinematic rigidbody to push things around, but their movement and ...
1 vote
1 answer
1k views

Bullet Physics Integration - direct movement of rigid bodies

I'm adding bullet physics to my engine. The physics simulation bits are all working nicely, but one bit I'm struggling with is being able to move objects using their co-ordinates, and then have them ...
0 votes
1 answer
241 views

x-inverted obj importer in BulletSharp - what's wrong? [closed]

See [dead link removed] at the repository. Screenshot: [broken image removed] Left: bullet imported version, right: correct 3ds max version. It's somehow inverted. If you think that left part is ...
3 votes
1 answer
2k views

Integrating Bullet3 into a C++ project - Linking to libraries

I've been following the BulletQuickstart guide and I get as far as generating the vs2010 solution and converting to newer. I've also been following this very good answer from a few years ago and have ...
0 votes
2 answers
3k views

Detect when a bullet rigidbody is on ground

I have a rigidbody that is on top of a plane or another rigidbody. How do I check if said rigidbody is on top of it? I tried to check the Y-part of the velocity but it is never 0, it is always a ...