If I can use Box2D to make a 2D Billiards Games

I want to make a Billiards Games, but Box2D does not work well.
If ball move fast It can not hit other ball.
How can I solve this problem.
Thanks a lot!

b2BodyDef bodyDef;
b2CircleShape bodyShape;
b2FixtureDef fixtureDef;

bodyDef.type = b2_dynamicBody;
bodyDef.bullet = true;
bodyDef.position.Set(x / BOX_SCALE, y / BOX_SCALE);
bodyDef.linearDamping = 1.0f;
bodyDef.userData = m_userData;

bodyShape.m_radius = 11.0 / BOX_SCALE;

fixtureDef.shape = &bodyShape;
fixtureDef.density = 10.0f;
fixtureDef.friction = 0.0f;
fixtureDef.restitution = 1.0f;

m_body = g_world->CreateBody(&bodyDef);
m_body->CreateFixture(&fixtureDef);
Continuous dynamic-vs-dynamic collision detection is not 100% accurate. If you create a C++ testbed example of your problem, I will try to diagnose the problem.
thanks for reply...
I define two 2 radius circle, one local (0, 10) another local (-5, 6.2)

#ifndef VERTICAL_STACK_H
#define VERTICAL_STACK_H

class VerticalStack : public Test
{
public:
VerticalStack()
{
{
b2BodyDef bd;
b2Body* ground = m_world->CreateBody(&bd);

b2PolygonShape shape;
shape.SetAsEdge(b2Vec2(-40.0f, 0.0f), b2Vec2(40.0f, 0.0f));
ground->CreateFixture(&shape, 0.0f);

shape.SetAsEdge(b2Vec2(20.0f, 0.0f), b2Vec2(20.0f, 20.0f));
ground->CreateFixture(&shape, 0.0f);

shape.SetAsEdge(b2Vec2(-20.0f, 0.0f), b2Vec2(-20.0f, 20.0f));
ground->CreateFixture(&shape, 0.0f);
}

m_world->SetGravity(b2Vec2(0.0f, 0.0f));

b2BodyDef bodyDef;
b2CircleShape bodyShape;
b2FixtureDef fixtureDef;

bodyDef.type = b2_dynamicBody;
bodyDef.bullet = true;
bodyDef.position.Set(0, 10);
//bodyDef.linearDamping = 1.0f;

bodyShape.m_radius = 2.0f;

fixtureDef.shape = &bodyShape;
fixtureDef.density = 10.0f;
fixtureDef.friction = 0.0f;
fixtureDef.restitution = 1.0f;

m_body = m_world->CreateBody(&bodyDef);
m_body->CreateFixture(&fixtureDef);

bodyDef.position.Set(-10, 6.2);
m_bullet = m_world->CreateBody(&bodyDef);
m_bullet->CreateFixture(&fixtureDef);
m_bullet->SetLinearVelocity(b2Vec2(1000.0f, 0.0f));
}

static Test* Create()
{
return new VerticalStack;
}

b2Body* m_bullet;
b2Body* m_body;
};

#endif
Thanks for the example. I tested your example and confirmed that it is functioning correctly in the latest code in Google SVN.

Original thread: https://box2d.org/forum/viewtopic.php?t=5696