cylinder cylinder collision

aash29
Posts: 8
Joined: Wed May 09, 2007 9:06 am

cylinder cylinder collision

Post by aash29 »

Greetings!

I just started with Bullet physics, and the problem I want to solve is simulating collisions of a group of coin-shaped objects (flat cylinders). I tried modifying BasicDemo example, but noticed that, unlike with a stack of boxes, collision detection with cylinders is unreliable in this case. Should I change collision detection method to something more robust? If so, how?
STTrife
Posts: 109
Joined: Tue May 01, 2012 10:42 am

Re: cylinder cylinder collision

Post by STTrife »

maybe it's a problem with scaling? not sure though.. but depending on your frame rate you shouldn't make objects too small. What dimensions did you use?
aash29
Posts: 8
Joined: Wed May 09, 2007 9:06 am

Re: cylinder cylinder collision

Post by aash29 »

I used btVector3(SCALING*1,SCALING*0.1,SCALING*0.1) as cylinder parameters. As I noticed after pressing 'A', bounding box are wrong for some reason in this case. I wonder why does this happen?