possible friction error

binofet
Posts: 20
Joined: Fri Jun 15, 2007 5:03 pm

possible friction error

Post by binofet »

If you place a box on a flat box and give it a linearvelocity to slide on the box it is sitting on, it will usually curve to the right or the left. . . why is that? shouldn't it travel in a straight line and come to rest?

this can be replicated in any of the demos by changing the shootbox method in DemoApplication.cpp to place a box on the ground and give it a linear velocity.

Bino
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: possible friction error

Post by Erwin Coumans »

binofet wrote:If you place a box on a flat box and give it a linearvelocity to slide on the box it is sitting on, it will usually curve to the right or the left. . . why is that? shouldn't it travel in a straight line and come to rest?
Yes, there is some approximation going on that causes this issue. Will be added to the todo list.

Thanks,
Erwin
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: possible friction error

Post by Erwin Coumans »

This should be fixed in the latest Subversion, and in upcoming Bullet 2.63.

Can you try this Bullet 2.63 preview and report if it is solved?

Thanks,
Erwin