[ODE] Ball changes direction at intersection with triangle edge

Jaroslav Sinecky jsinecky at tiscali.cz
Wed Nov 22 10:45:48 MST 2006


Triangles like that are not good for any numeric calculations (they 
almost degenerate to lines). Try to somehow refine your mesh to get 
better defined triangles and see if collisions get any better.

Jaroslav


Johan Oberg wrote:
>
> Hello! I'm making a minature golf game. I model the courses with 
> google sketchup. When the ball is rolling almost parallel to a 
> triangle edge it deviates from it's initial direction when it hits the 
> edge. I use the wrapper OgreOde and 
> EntityInformer::createStaticTriangleMesh to create the ground. I can't 
> just use a plane since I have a hole in the ground.
>
> I would appreciate any input or tip you could give me.
>
>  
>
> I have a picture to illustrate my problem on my homepage.
>
>  
>
> http://hem.bredband.net/johaob/
>
>  
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ODE mailing list
> ODE at q12.org
> http://q12.org/mailman/listinfo/ode
>   



More information about the ODE mailing list