00001 00008 #include "SO3Shape.h" 00009 00010 namespace SO3 00011 { 00012 00013 SShape::SShape() : SData("") 00014 { 00015 // Forbiden, private. 00016 } 00017 00018 SShape::SShape(std::string shapeName, ShapeType shapeType) : SData(shapeName) 00019 { 00020 // test collision type for debugging new shape types 00021 assert(shapeType != SO3_NULL_COLLISION); 00022 00023 mShapeType = shapeType; 00024 } 00025 00026 SShape::~SShape() 00027 { 00028 } 00029 00030 SShape::ShapeType SShape::GetType() 00031 { 00032 return mShapeType; 00033 } 00034 00035 OgreNewt::CollisionPtr SShape::GetOgreNewtCollisionPtr() 00036 { 00037 assert (mCollisionPtr.get() != 0); 00038 return mCollisionPtr; 00039 } 00040 00041 }