[ODE] Holes

Rodrigo Hernandez kwizatz at aeongames.com
Tue Mar 20 13:31:37 MST 2007


The easiest way, and probably the most efficient, would be to construct 
your pool table as a combination of boxes (cubes),
create a geometry for them but attach no body.

Gazi Alankus wrote:
> The first thing that comes to my mind is:
>
> In your collision detection function, make an if case that detects
> when a ball is trying to collide with the plane and when the ball's
> coordinates are on the hole area. If that case is true don't make the
> ball and plane collide. This should make it pretty simple.
>
> -Gazi
>
> On 20/03/07, naspiri <naspiri at yahoo.it> wrote:
>   
>> My first mail to this list, glad to be here :-)... My english isn't so
>> well, I only hope it's understandable...
>> I'm a newbie, using ODE in a pool game, I made a demo with balls rolling
>> and colliding on a table,
>> but now I would introduce the holes... How can I make that? How can I
>> create a hole on a plane with ODE?
>> I think there are different ways and one is trimesh I suppose... is it
>> the only option?
>>
>> Chiacchiera con i tuoi amici in tempo reale!
>>  http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com
>>
>> _______________________________________________
>> ODE mailing list
>> ODE at ode.org
>> http://mooshika.org/mailman/listinfo/ode
>>
>>     
> _______________________________________________
> ODE mailing list
> ODE at ode.org
> http://mooshika.org/mailman/listinfo/ode
>
>   



More information about the ODE mailing list