Collisions against concave meshes?

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Collisions against concave meshes?

Postby ffelagund » Tue Oct 06, 2009 9:21 am

Hello, I've search a bit around this topic and I haven't found the exact reply I need, but sorry if this is already replied :)

I have some non convex meshes, in fact think on a plane box with a hole in the middle, and a ball that have to pass through down this hole. Well, I tried modelling the mesh collision object using Tree Collisions, but when the ball reaches the hole, instead of fall down through, it bounces, like if the hole were an obstacle, so I though that there should be any restriction that I havent found in the wiki about that kind of meshes.

Well, because this a guru's forum, I would ask the best way of implement that kind of holes, or of anybody could tell me what am I doing wrongly... :)

Best regards,
Jacobo.
ffelagund
 
Posts: 7
Joined: Fri Oct 02, 2009 6:58 am

Re: Collisions against concave meshes?

Postby Julio Jerez » Tue Oct 06, 2009 9:48 am

if the mesh is a tree collision then you should be able to represent a hole eassy.

Tree problem with collison tree is that they can only be static, but teh are mase of single polygon, all yo unee is te teh mesh it self have the hole.
I suggest Implementing debug display to see if teh collision tree is in the correct place.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Collisions against concave meshes?

Postby ffelagund » Mon Oct 12, 2009 5:12 am

Thank you Julio,

After some debugging I realized out that I was building incorrectly the tree collision mesh :)
ffelagund
 
Posts: 7
Joined: Fri Oct 02, 2009 6:58 am


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron