Author Topic: Physics - pool example  (Read 172 times)

aqapo Krzysztof   «   on: March 12, 2012, 04:42:25 AM »
Hi there,
I've been experimenting with your example of Pool game (http://wiki.flare3d.com/index.php/Test12_-_Pool_Demo).

I encountered problem with physics: when the ball is near the rail and you hit the ball with big power, it pass through the rail.
I tried to add bigger rails but it didn't solve the problem.

Is it bug in physics enging or am I doing something wrong?

Marcos Lazo   «   Reply #1 on: March 15, 2012, 01:11:09 PM »
The problem is that the collision detection method implemented in the physics engine does not guarantee the detection of (all) collisions when objects move very fast.
This problem is very remarkable with objects colliding with a mesh of triangles (eg the ball against the rails of the pool table).
You can try to increase the fps rate or the accuracy of the physics engine. Or slightly reduce the force applied to the ball.
Good luck!
Cheers!