cylinder vs box collision problem

ZeALot
Posts: 2
Joined: Fri Aug 06, 2010 7:08 am

cylinder vs box collision problem

Post by ZeALot »

I'm newbie in bullet. Have one problem using it: creating static big box (50, 50, 50) as ground and cylinder (height 2 radius 2) as dynamic object gravity is 10. Cylinder is falling down... When cylinder interacts with ground (box) by flat side everything is ok, problem is appear when it interacts by round side - it intersects box about at half of its radius and then collides with it and get very big impulse...
ZeALot
Posts: 2
Joined: Fri Aug 06, 2010 7:08 am

Re: cylinder vs box collision problem

Post by ZeALot »

Solved! Was

Code: Select all

btCylinderShape(btVector3(radius, height/2, 0))
should be

Code: Select all

btCylinderShape(btVector3(radius, height/2, radius))