35 #ifndef _BoxCollisionShape_H__ 36 #define _BoxCollisionShape_H__ 71 {
if(this->halfExtents_ == extents)
return false; this->halfExtents_ = extents; updateShape();
return true; }
77 {
return halfExtents_;}
86 {
if(this->halfExtents_.z == value/2.0f)
return false; this->halfExtents_.z = value / 2.0f; updateShape();
return true; }
92 {
return this->halfExtents_.z * 2.0f; }
101 {
if(this->halfExtents_.y == value/2.0f)
return false; this->halfExtents_.y = value / 2.0f; updateShape();
return true; }
107 {
return this->halfExtents_.y * 2.0f; }
116 {
if(this->halfExtents_.x == value/2.0f)
return false; this->halfExtents_.x = value / 2.0f; updateShape();
return true; }
122 {
return this->halfExtents_.x * 2.0f; }
124 virtual void changedScale();
127 void registerVariables();
129 btCollisionShape* createNewShape()
const;
#define _ObjectsExport
Definition: ObjectsPrereqs.h:60
float getLength() const
Get the length of the BoxCollisionShape.
Definition: BoxCollisionShape.h:121
bool setLength(float value)
Set the length of the BoxCollisionShape.
Definition: BoxCollisionShape.h:115
xmlelement
Definition: Super.h:519
Declaration and implementation of several math-functions, typedefs of some Ogre::Math classes to the ...
float getWidth() const
Get the width of the BoxCollisionShape.
Definition: BoxCollisionShape.h:91
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
Mode
Definition: CorePrereqs.h:102
bool setHalfExtents(const Vector3 &extents)
Set the half extents of the BoxCollisionShape.
Definition: BoxCollisionShape.h:70
Definition of the CollisionShape class.
Shared library macros, enums, constants and forward declarations for the objects module ...
Wrapper for bullet collision shape class btCollisionShape.
Definition: CollisionShape.h:57
float getHeight() const
Get the height of the BoxCollisionShape.
Definition: BoxCollisionShape.h:106
bool setWidth(float value)
Set the width of the BoxCollisionShape.
Definition: BoxCollisionShape.h:85
bool setHeight(float value)
Set the height of the BoxCollisionShape.
Definition: BoxCollisionShape.h:100
const Vector3 & getHalfExtents() const
Get the half extents of the BoxCollisionShape.
Definition: BoxCollisionShape.h:76
Wrapper for the bullet box collision shape class btBoxShape.
Definition: BoxCollisionShape.h:56
Vector3 halfExtents_
The half extents of the BoxCollisionShape. The x-component is half the length, the y-component is hal...
Definition: BoxCollisionShape.h:131