btBoxShape::btBoxShape( const btVector3& boxHalfExtents) 
: btPolyhedralConvexShape()
{
	m_shapeType = BOX_SHAPE_PROXYTYPE;

	setSafeMargin(boxHalfExtents);

	btVector3 margin(getMargin(),getMargin(),getMargin());
	m_implicitShapeDimensions = (boxHalfExtents * m_localScaling) - margin;
}
btCylinderShape::btCylinderShape (const btVector3& halfExtents)
:btConvexInternalShape(),
m_upAxis(1)
{
	setSafeMargin(halfExtents);

	btVector3 margin(getMargin(),getMargin(),getMargin());
	m_implicitShapeDimensions = (halfExtents * m_localScaling) - margin;
	m_shapeType = CYLINDER_SHAPE_PROXYTYPE;
}
btCylinderShape::btCylinderShape (const btVector3& halfExtents)
:btConvexInternalShape(),
m_upAxis(1)
{
	setSafeMargin(halfExtents);

	btVector3 margin(getMargin(),getMargin(),getMargin());
    // setting this variable based on the passed in half-extents
    // and this is used to generate the size
	m_implicitShapeDimensions = (halfExtents * m_localScaling) - margin;
	m_shapeType = CYLINDER_SHAPE_PROXYTYPE;
}