A query on CylinderCollisionShape

When i see at constructor for a spherecollisionshape then it just asks for radius and it makes sense…so a user would make a spherecollisionshape with same radius as the sphere for which he wants to have spherecollisionshape. boxcollisionshape constructor also seems fit in that sense



but for CylinderCollisionShape it asks for a vector.so how does it fit for a cylinder spatial whose radius and height i have?

Enable the debug view, then you can see it. Depending on the direction of our cylinder its the x and y or z and y component of the vector.

ok…

my cylinder’s axis is along y axis…so i need to supply vector3f(radius,height/2,0) or vector3f(0,height/2,radius)



m i right?