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

Body going through other objects

I'm working on a small FPS (personal project), written in java and using JBullet (port of bullet). I got a basic rendering engine with OpenGL and bullet works well. I've implemented a character using a RigidBody, but my character keeps going through…
Azertyfun
  • 49
  • 1
  • 5
1
vote
1 answer

After coming to rest JMonkey physics objects are frozen in position

This is a very simple extension of HelloPhysics in the JME3 tutorial. When you click on a brick, the brick is removed from the game and the physicsspace. If you remove the bricks fast enough, before the wall settles, it crumbles like you would…
Zackkenyon
  • 352
  • 1
  • 2
  • 18
1
vote
1 answer

Can I implement JBullet physics later in development

I am a semi-new OpenGL programmer, and am in the process of learning of how VBO's and Shaders interact with each other. I have a basic demo set up, and it imports the model and places a light in the scene. Now, in the future I would like to have…
1
vote
1 answer

jBullet Camera "Holder" Is Not Moving

I am using jBullet with OpenGL to create a basic game engine. I created two classes named ObjectSurface and ObjectEntity. Basically ObjectSurface's have no mass so they don't move and ObjectEntity's can move by collision or gravity. I created a…
Sierox
  • 459
  • 3
  • 18
1
vote
2 answers

LWJGL first person camera using jBullet

I've got a camera set up, and I can move with WASD and rotate the view with the mouse. But now comes the problem: I want to add physics to the camera/player, so that it "interacts" with my other jBullet objects. How do I do that? I thought about…
JangoBrick
  • 13
  • 1
  • 2
  • 5
1
vote
0 answers

jBullet - 6DOFConstraint severe oscillation

I have made a simple multi-cyclinder snake body. I have a 6DOFConstraint between each body and the angles are controlled by increasing/decreasing the upper and lower limits of the rotation as such to change the angle. Rotation about the horizontal…
Joe Pavitt
  • 11
  • 1
0
votes
1 answer

How do I execute a callback when JBullet detects a collision?

So currently I have an instance of JBullet running on its own thread and I have no idea how to get information about collisions on JBullet 20101010-1. I have tried calling ContactAddedCallback as shown below but nothing happens. new…
0
votes
1 answer

JBullet: How to add heightmap to dynamic world?

I implements JBullet into my code. Boxes, spheres work prefectly. But I don't have idea how to implement to my world heightmap(as static object). What type of shape I must use and how? My heightmap array was something like this…
Suak
  • 21
  • 4
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

How to Create a "BoxShape" in jBullet?

I want to create a BoxShape in jBullet. The constructor asks for a Vector3f object as parameter which asks for three float parameters. BoxShape(Vector3f boxHalfExtends) //The constructor for the "BoxShape" class. I have looked at the jBullet page…
Sierox
  • 459
  • 3
  • 18
0
votes
1 answer

JBullet RigidBodies

I am having trouble implementing collisions with my game, more specifically the main player (once it collides with a box i have setup, it bounces far back). This is the code to setup the viewer: CollisionShape myCol = new CylinderShape(new…
1
2