|
Thrive
|
A shape compounded of multiple other shapes. More...
#include <collision_shape.h>
Public Member Functions | |
| btCollisionShape * | bulletShape () const override |
| Returns a pointer to the internal Bullet shape object. More... | |
| ShapeType | shapeType () const override |
| The shape's type. | |
| StorageContainer | storage () const override |
| Serializes this compound shape. More... | |
| CompoundShape () | |
| Constructor. | |
| void | addChildShape (const Ogre::Vector3 &translation, const Ogre::Quaternion &rotation, CollisionShape::Ptr shape) |
| Adds a new child shape. More... | |
| void | clear () |
| Removes all child shapes. | |
| void | removeChildShape (const CollisionShape::Ptr &shape) |
| Removes a child shape. More... | |
Public Member Functions inherited from thrive::CollisionShape | |
| virtual | ~CollisionShape ()=0 |
| Destructor. | |
Static Public Member Functions | |
| static std::unique_ptr< CompoundShape > | load (const StorageContainer &storage) |
| Loads a compound shape. More... | |
| static luabind::scope | luaBindings () |
| Lua bindings. More... | |
Static Public Member Functions inherited from thrive::CollisionShape | |
| static std::unique_ptr< CollisionShape > | load (const StorageContainer &storage) |
| Loads a shape from a storage container. More... | |
| static luabind::scope | luaBindings () |
| Lua bindings. More... | |
Static Public Attributes | |
| static const ShapeType | SHAPE_TYPE = COMPOUND_SHAPE |
| The ShapeType associated with this class. More... | |
Additional Inherited Members | |
Public Types inherited from thrive::CollisionShape | |
| enum | Axis : uint8_t { AXIS_X = 0, AXIS_Y = 1, AXIS_Z = 2 } |
| Enumeration for the 3 axes. More... | |
| enum | ShapeType : uint8_t { EMPTY_SHAPE = 0, BOX_SHAPE = 1, CAPSULE_SHAPE = 2, COMPOUND_SHAPE = 3, CONE_SHAPE = 4, CYLINDER_SHAPE = 5, SPHERE_SHAPE = 6 } |
| Enumeration for the currently supported shape types. More... | |
| using | Ptr = std::shared_ptr< CollisionShape > |
| Convenience typedef. | |
A shape compounded of multiple other shapes.
| void CompoundShape::addChildShape | ( | const Ogre::Vector3 & | translation, |
| const Ogre::Quaternion & | rotation, | ||
| CollisionShape::Ptr | shape | ||
| ) |
Adds a new child shape.
| translation | The child shape's local translation relative to this shape's origin |
| rotation | The child shape's local rotation |
| shape | The child shape |
|
inlineoverridevirtual |
|
static |
Loads a compound shape.
| storage |
|
static |
| void CompoundShape::removeChildShape | ( | const CollisionShape::Ptr & | shape | ) |
Removes a child shape.
| shape | The shape to remove |
|
overridevirtual |
|
static |
The ShapeType associated with this class.
1.8.10