#include <src/orxonox/objects/collisionshapes/SphereCollisionShape.h>
Public Member Functions | |
float | getRadius () const |
void | registerVariables () |
void | setRadius (float radius) |
SphereCollisionShape (BaseObject *creator) | |
virtual void | XMLPort (Element &xmlelement, XMLPort::Mode mode) |
XML loading and saving. | |
virtual | ~SphereCollisionShape () |
Private Member Functions | |
btCollisionShape * | createNewShape () const |
Private Attributes | |
float | radius_ |
orxonox::SphereCollisionShape::SphereCollisionShape | ( | BaseObject * | creator | ) |
References radius_, RegisterObject, registerVariables(), and orxonox::CollisionShape::updateShape().
orxonox::SphereCollisionShape::~SphereCollisionShape | ( | ) | [virtual] |
btCollisionShape * orxonox::SphereCollisionShape::createNewShape | ( | ) | const [private, virtual] |
float orxonox::SphereCollisionShape::getRadius | ( | ) | const [inline] |
Referenced by XMLPort().
void orxonox::SphereCollisionShape::registerVariables | ( | ) |
Reimplemented from orxonox::CollisionShape.
References radius_, orxonox::Synchronisable::registerVariable(), orxonox::VariableDirection::ToClient, and orxonox::CollisionShape::updateShape().
Referenced by SphereCollisionShape().
void orxonox::SphereCollisionShape::setRadius | ( | float | radius | ) | [inline] |
Referenced by orxonox::Projectile::Projectile(), and XMLPort().
void orxonox::SphereCollisionShape::XMLPort | ( | Element & | xmlelement, | |
XMLPort::Mode | mode | |||
) | [virtual] |
XML loading and saving.
xmlelement | The XML-element | |
loading | Loading (true) or saving (false) |
Reimplemented from orxonox::CollisionShape.
References getRadius(), setRadius(), SUPER, and XMLPortParam.
float orxonox::SphereCollisionShape::radius_ [private] |
Referenced by createNewShape(), registerVariables(), and SphereCollisionShape().