Hi,
I've several problems with the CylinderShape:
1] my simulation unit is the metter. I want to create a cylinder with radius=0.2m, length=1.0m
float coef=5.0f;
_colShape = new btCylinderShapeZ(btVector3(_r/coef,_r/coef,_l));
Why do i have to divide the ray by 5.0 for producing good radius ? (i've made several tests with boxes with the same dimention and there is no problem ...). For testing that the result is good, i let the cylinder to fall within boxes that are around the cylinder and ... radius/5 seems to be the good value ...
2] my simulation create geometries and AFTER all is created, i call _colShape->setLocalScaling(btVector3(x,y,z));
for giving the final size.
I'm surprised because the setLocalScaling function has no effect with the cylinder. I've tested with some large values and the result is always the same : nothing happens
Does i do something wrong with the cylinder ?
Thank you for your response.
CylinderShape question
-
- Posts: 35
- Joined: Mon Jul 20, 2009 12:58 pm
Re: CylinderShape question
Sorry for the 1]: in fact the 5.0 divider is because no scaling is applyed by caling setLocalScaling ! (that should divide by 5)
The only problem is the 2]

The only problem is the 2]
