[ODE] perfect horizontal trimesh used for a billiard game
Jon Watte (ODE)
hplus-ode at mindcontrol.org
Fri Dec 30 10:36:34 MST 2005
Because you don't need accurate physics when the balls leave the table,
you could just use a plane for the rolling surface, and then use
trimeshes (or boxes, or ccylinders) for the walls.
If the balls hit the pockets, you can deal with that using special code,
say by removing the plane collision if the ball is within a certain
radius of the pocket center.
Cheers,
/ h+
Eugen Udrea wrote:
> i have a trimesh with triangles pointing up with normal (0, 1, 0)...but
> the balls are not rolling ok on this surface, they seem to stumb to
> edges of triangles and they are pushed back...can anyone point me in the
> right direction for an accurtate billiard table implementation ?!
> (i have tried to use squared surfaces one near the other to aproximate
> the table but i have problems with the fact that ODE doesnt allow 2
> surfaces at the same height or overllaping)
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ODE mailing list
> ODE at q12.org
> http://q12.org/mailman/listinfo/ode
More information about the ODE
mailing list