jbullet

jBullet Camera “Holder” Is Not Moving

孤街浪徒 提交于 2019-12-24 15:27:47
问题 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 Camera with an ObjectEntity object named cameraHolder so that it can fall and have collision and all. The problem is that the cameraHolder is supposed to move when the specific WASD key is pressed but it only moves one unit and doesn't move anymore.

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

假装没事ソ 提交于 2019-12-23 14:24:07
问题 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 point (3D coordinates) I would like to know if this point is contained inside the complex 3D shape. I have split this problem in 2 smaller problems : How can I represent the complex 3D shape in memory? (I found several libraries, but it seems really

How to apply Bullet physics to drawn Opengl 3d shapes

戏子无情 提交于 2019-12-03 13:07:52
问题 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 if I give a buffer of vertices for a triangle mesh shape for the 3d object. I need Bullet to create a CollisionShape based on the triangle mesh shape, and apply the physics to it, which at the same time apply physics to the drawn opengl objects.

How to apply Bullet physics to drawn Opengl 3d shapes

我的梦境 提交于 2019-12-03 03:18:57
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 if I give a buffer of vertices for a triangle mesh shape for the 3d object. I need Bullet to create a CollisionShape based on the triangle mesh shape, and apply the physics to it, which at the same time apply physics to the drawn opengl objects. At the moment, the physical collision shape may move (in bullet), but the drawn opengl shape is not.