Unstoppable billiards balls

Slava Blinnikov
Posts: 2
Joined: Fri Aug 07, 2009 1:03 pm
Location: Togliatti, Russia

Unstoppable billiards balls

Post by Slava Blinnikov »

Hello.
I write billiards simulation game.
When user push "H" button I call ->applyImpule() on the cueball - it's alright, but when cueball hit pyramid it accelerates and other ones starting to move and will never stop - why?

Built on Linux Mandriva: http://dump.ru/file/3194398
Sources (used only SDL and Bullet): http://dump.ru/file/3194434
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: Unstoppable billiards balls

Post by Erwin Coumans »

Are you using the latest Bullet 2.75 RC6 or later? If so, please try it.

Also, you might want to add some angular damping.
I couldn't download the file from the russian website. Can you try to attach the source archive to this topic?
Thanks,
Erwin
Slava Blinnikov
Posts: 2
Joined: Fri Aug 07, 2009 1:03 pm
Location: Togliatti, Russia

Re: Unstoppable billiards balls

Post by Slava Blinnikov »

Yes, setting damping resolved the problem.
Thanks for help.