A few unsolved issues for a Pool Simulator

Post Reply
tkefauver
Posts: 10
Joined: Fri Jul 19, 2013 11:32 pm

A few unsolved issues for a Pool Simulator

Post by tkefauver »

I'm in the process of writing pool simulator with bullet but there are a couple nagging problems I can't seem to figure out or find an answer here on the forum. So I'm hoping someone can help me with at least one!

Here's some notes about my environment:
-my world is relatively small, the pool balls (btSphereShape) radius are roughly 0.05m
-i'm using stepSimulation(1/300,10,1/300) this maybe a little extreme
-the rails and balls collision margin are set to 0.00004

My issues (by importance/confusion):
0. On some, usually longer, small deflection shots, the object ball doesn't follow its intended path but my calculation works on other shots!
1. The balls occasionally, using when moving slowly will drift into the rail, bypassing the collision
2. Setting rolling friction causes the balls to dissapear when they collide

My question's too broad to post any code but if you want to know something specific I'd be happy to provide.
Post Reply