Hi everyone,
How does one interpret the halfExtents vector for btCylinderShape? For example, if I have a cylinder of radius 3 and height 1, what would be the correct btCylinderShape vector here?
Thanks,
- D
Specifying correct btCylinderShape
Re: Specifying correct btCylinderShape
Without testingt, I'd say:How does one interpret the halfExtents vector for btCylinderShape? For example, if I have a cylinder of radius 3 and height 1, what would be the correct btCylinderShape vector here?
btCylinderShape* shape = new btCylinderShape(btVector3(radius,height*0.5,radius));
-
- Posts: 10
- Joined: Fri Dec 04, 2009 8:09 pm
Re: Specifying correct btCylinderShape
Thanks, Flix! I'll try this out.
- D
- D