Questions tagged [jbullet]

JBullet is a Java port of the Bullet Physics Library, a C++ physics library designed to simulate bullet interactions.

JBullet is a library written to handle bullet physics in games. It is a port of the C++ Bullet Physics Library. Nearly all of Bullet's features are implemented in JBullet, which is purely written in Java.

26 questions
7
votes
4 answers

How to apply Bullet physics to drawn Opengl 3d shapes

I was just wondering whether there is a way to apply bullet physics to opengl drawn objects (created using glVertex3f or triangle mesh with glVertexAttribPointer). I am currently using jogl and jbullet to apply physics to my 3D objects. Specifically…
Noir
  • 119
  • 1
  • 8
6
votes
3 answers

jBullet example

I am trying to learn how to use jBullet in a project that I am working on and I have reviewed the demo that the source provides but I just cannot figure out how these demo get objects display. Does anyone have a good resource they could point me in…
user1566540
5
votes
1 answer

Convert screen coordinates to OpenGL coordinates

I'm creating a Dice roller app for Android. Using Kotlin, OpenGL-ES and jBullet. I've implemented the dice. Now I need to create walls, because otherwise the dice will roll out of the screen. Because screens can have different aspect ratios, I'm…
4
votes
1 answer

How to know if a point is inside a complex 3D shape (.ply file)

I'm working on a Java project witch is really killing me. After several days of researching on different forums, looking for what I really need, I come to ask your help. My data : A .ply file (containing a 3D shape made of a lot of triangles) A…
Theodiablo
  • 41
  • 2
3
votes
1 answer

How to use bullets HeightfieldTerrainShape

I'm struggling to find out how to use HeightfieldTerrainShape from JBullet physics library. As I can see, there are 2 constructors available: public HeightfieldTerrainShape(int heightStickWidth, int heightStickLength, byte[] heightfieldData, …
theCNG27
  • 405
  • 8
  • 27
3
votes
1 answer

Run demo of JBullet in IntelliJ

Has anyone successfully run demo of JBullet in IntelliJ? When I run the demo using the ant build script, i found a mistake like this : C:\Users\halin_000\ProgrammingProjects\Java\CS351L\JBullet\build.xml:77: java.lang.IllegalStateException:…
Zhu Li
  • 585
  • 6
  • 18
2
votes
0 answers

Gravity Between a Pair of Triangles

Given two triangles in 3D, defined by points [t1.v1, t1.v2, t1.v3] and [t2.v1, t2.v2, t2.v3], where vX are points with variables (x, y, z). How can I calculate the force of gravity between them? Formula for point masses: force =…
Kent
  • 713
  • 2
  • 8
  • 19
2
votes
0 answers

Third Person Camera using JBullet and lwjgl

I am developing a race game in java using jbullet and lwjgl.I am currently having trouble in making my camera follow the vehicle.Here is my code.It follows the car until it rotates.Here is the code.Can someone tell me what i am doing wrong ?! import…
Saad Hussain
  • 63
  • 1
  • 9
1
vote
1 answer

LWJGL Mesh to JBullet collider

I'm working on creating a voxel engine in LWJGL 3, I have all the basics down (chunks, mesh rendering, etc). Now I'm working on adding physics using JBullet. This is my first time using JBullet directly, but I've used Bullet before in other 3D…
Keith M
  • 1,199
  • 2
  • 18
  • 38
1
vote
0 answers

Android Lollipop 5.0 Garbage Collection Issue with Jbullet (gbullet specifically)

I am trying to implement a raycast vehicle with jbullet specifically gbullet but I get some garbage collecter issue in android 5.0 Lollipop. I do use a pure java port so and this runs on GLThread. I used Samsung Galaxy 5S. Here is the stack…
Ridvan
  • 23
  • 5
1
vote
1 answer

3D java collision detection with Jbullet

So I have spent a long time trying to work on a collision detection system from scratch for own game engine and came up fruitless due to lack of time. Finally I decided to try to use Jbullet to try to make things quicker. Now the documentation is…
thor625
  • 87
  • 4
  • 16
1
vote
1 answer

Java - Create world collision with Heightmap (JBullet)

I'm trying to create an infinite playable world with Jogl, Jbullet, and OpenSimplexNoise (OSN). I'm generating the world with OSN, rendering it successfully, but I don't know how to add it to the world/collision system. I found the…
1
vote
1 answer

JBullet - Convex Shapes not working properly when static

I use dynamic box-shapes bodies for collision in JBullet. They collide with each other correctly. But I'm fiddling arround with building the world and came upon some strange problems. When I'm trying to make convex RigidBodies (BoxShape or…
mad_manny
  • 1,081
  • 16
  • 28
1
vote
1 answer

BetterCharacterControl not applying RigidBody at the right Position

So Im new to JME3 and I have a few problems understanding the BetterCharacterControl. When I try to apply a BetterCharacterControl to a box it always "expands" from the upper part of the box instead of the center. (A picture explains that…
B.Friedrichs
  • 158
  • 7
1
vote
1 answer

JBullet NullPointer on step simulation in separate thread

I have a setup in my game where physics are updated in a separate thread with an implementation as follows Physics Processor (Physics Thread) public class PhysicsProcessor extends Runnable { private DynamicsWorld world; public…
1
2