Physics problem in JBullet

Hi,

I have been building a game engine that uses JBullet. I now have a problem that I can not solve:
In my scene I have 2 spheres. One static and one on which I can apply a force. Now it seems that when the spheres are too close, I can not a apply force to the sphere with the function applyForce(…). I found out that this problem occurs as long the function hasCollission is called and when the spheres are at a certain distance from eachother, it is again possible to apply a force. This problem does not seem to occur with other primitives: near Sphere Box collisions give no problems.

Now I wonder whether I use the function applyForce wrongly, or if there could be a bug in JBullet.

Can anyone help me with this??

Thanks in advance…

It might be problem with autosleeping, try calling RigidBody.activate(true).

Unfortunately that does not solve the problem. I call activate(true) on every timestep.

Not sure what can cause this, can you create reproducion test case? You can do that by modifying BasicDemo and putting your physics situation there.

I have recreated the scene in basicDemo, but the problem is not reproduced. It drives me mad as the box sphere intersection works correctly. I saw that the boundingsphere has radius 8 when my sphere radius was 5. Maybe this causes the problem.

I did find out that applyForce can be called as long hasCollission is not called. But whenever the spheres are too close, it does not apply Forces.
Could it be that the problem is in SphereSphereCollission? Or do you have any other ideas?

Thank you… hopefully:)