21SShapeChamferCylinder::SShapeChamferCylinder(
const std::string& shapeName,
SNode* node,
const Ogre::Real& radius,
const Ogre::Real& height) :
SShape(shapeName,
SShape::SO3_CHAMFERCYLINDRE_COLLISION)
23 Ogre::Vector3 poffset = Ogre::Vector3::ZERO;
30#ifdef USE_COLLISION_NOSCALE
33 mRadius = std::max(radius, 0.0001f) * scale.x;
34 mHeight = std::max(height, 0.0001f) * scale.y;
37 mRadius = std::max(radius, 0.0001f);
38 mHeight = std::max(height, 0.0001f);
44SShapeChamferCylinder::SShapeChamferCylinder(
const std::string& shapeName,
SNode* node,
const Ogre::Real& radius,
const Ogre::Real& height,
const Ogre::Vector3& offset,
const Ogre::Quaternion& quat) :
SShape(shapeName,
SShape::SO3_CHAMFERCYLINDRE_COLLISION)
46 Ogre::Vector3 poffset = Ogre::Vector3::ZERO;
54#ifdef USE_COLLISION_NOSCALE
57 mRadius = std::max(radius, 0.0001f) * scale.x;
58 mHeight = std::max(height, 0.0001f) * scale.y;
61 mRadius = std::max(radius, 0.0001f);
62 mHeight = std::max(height, 0.0001f);