21SShapeCone::SShapeCone(
const std::string& shapeName,
SNode* node,
const Ogre::Real& radius,
const Ogre::Real& height) :
SShape(shapeName,
SShape::SO3_CONE_COLLISION)
23 Ogre::Vector3 poffset = Ogre::Vector3::ZERO;
29#ifdef USE_COLLISION_NOSCALE
32 mRadius = std::max(radius, 0.0001f) * scale.x;
33 mHeight = std::max(height, 0.0001f) * scale.y;
36 mRadius = std::max(radius, 0.0001f);
37 mHeight = std::max(height, 0.0001f);
43SShapeCone::SShapeCone(
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_CONE_COLLISION)
45 Ogre::Vector3 poffset = Ogre::Vector3::ZERO;
53#ifdef USE_COLLISION_NOSCALE
56 mRadius = std::max(radius, 0.0001f) * scale.x;
57 mHeight = std::max(height, 0.0001f) * scale.y;
60 mRadius = std::max(radius, 0.0001f);
61 mHeight = std::max(height, 0.0001f);