Specifying correct btCylinderShape

Post Reply
TatamiSoftware
Posts: 10
Joined: Fri Dec 04, 2009 8:09 pm

Specifying correct btCylinderShape

Post by TatamiSoftware »

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
Flix
Posts: 456
Joined: Tue Dec 25, 2007 1:06 pm

Re: Specifying correct btCylinderShape

Post by Flix »

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?
Without testingt, I'd say:
btCylinderShape* shape = new btCylinderShape(btVector3(radius,height*0.5,radius));
TatamiSoftware
Posts: 10
Joined: Fri Dec 04, 2009 8:09 pm

Re: Specifying correct btCylinderShape

Post by TatamiSoftware »

Thanks, Flix! I'll try this out.

- D
Post Reply