Changeset 3196 for code/trunk/src/orxonox/objects/collisionshapes
- Timestamp:
- Jun 20, 2009, 9:20:47 AM (16 years ago)
- Location:
- code/trunk
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/pch (added) merged: 3114-3118,3124-3125,3127-3131,3133,3138-3194
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/collisionshapes/BoxCollisionShape.cc
r3110 r3196 29 29 #include "BoxCollisionShape.h" 30 30 31 #include "BulletCollision/CollisionShapes/btBoxShape.h"31 #include <BulletCollision/CollisionShapes/btBoxShape.h> 32 32 33 33 #include "core/CoreIncludes.h" … … 72 72 btCollisionShape* BoxCollisionShape::createNewShape() const 73 73 { 74 return new btBoxShape( omni_cast<btVector3>(this->halfExtents_));74 return new btBoxShape(multi_cast<btVector3>(this->halfExtents_)); 75 75 } 76 76 } -
code/trunk/src/orxonox/objects/collisionshapes/BoxCollisionShape.h
r2662 r3196 32 32 #include "OrxonoxPrereqs.h" 33 33 34 #include "util/Math.h" 34 35 #include "CollisionShape.h" 35 36 -
code/trunk/src/orxonox/objects/collisionshapes/CollisionShape.cc
r3110 r3196 29 29 #include "CollisionShape.h" 30 30 31 #include "BulletCollision/CollisionShapes/btCollisionShape.h"31 #include <BulletCollision/CollisionShapes/btCollisionShape.h> 32 32 33 #include "util/Exception.h"34 33 #include "core/CoreIncludes.h" 35 34 #include "core/XMLPort.h" 36 #include "tools/BulletConversions.h"37 38 35 #include "objects/worldentities/WorldEntity.h" 39 36 #include "CompoundCollisionShape.h" … … 129 126 bool CollisionShape::hasTransform() const 130 127 { 131 return (!this->position_.positionEquals(Vector3(0, 0, 0), 0.001 ) ||132 !this->orientation_.equals(Quaternion(1,0,0,0), Degree(0.1 )));128 return (!this->position_.positionEquals(Vector3(0, 0, 0), 0.001f) || 129 !this->orientation_.equals(Quaternion(1,0,0,0), Degree(0.1f))); 133 130 } 134 131 -
code/trunk/src/orxonox/objects/collisionshapes/CompoundCollisionShape.cc
r3110 r3196 29 29 #include "CompoundCollisionShape.h" 30 30 31 #include "BulletCollision/CollisionShapes/btCompoundShape.h"31 #include <BulletCollision/CollisionShapes/btCompoundShape.h> 32 32 33 #include "util/Exception.h"34 33 #include "core/CoreIncludes.h" 35 34 #include "core/XMLPort.h" … … 89 88 { 90 89 // Only actually attach if we didn't pick a CompoundCollisionShape with no content 91 btTransform transf( omni_cast<btQuaternion>(shape->getOrientation()), omni_cast<btVector3>(shape->getPosition()));90 btTransform transf(multi_cast<btQuaternion>(shape->getOrientation()), multi_cast<btVector3>(shape->getPosition())); 92 91 this->compoundShape_->addChildShape(transf, shape->getCollisionShape()); 93 92 … … 134 133 { 135 134 // Only actually attach if we didn't pick a CompoundCollisionShape with no content 136 btTransform transf( omni_cast<btQuaternion>(shape->getOrientation()), omni_cast<btVector3>(shape->getPosition()));135 btTransform transf(multi_cast<btQuaternion>(shape->getOrientation()), multi_cast<btVector3>(shape->getPosition())); 137 136 this->compoundShape_->addChildShape(transf, shape->getCollisionShape()); 138 137 it->second = shape->getCollisionShape(); -
code/trunk/src/orxonox/objects/collisionshapes/CompoundCollisionShape.h
r2662 r3196 32 32 #include "OrxonoxPrereqs.h" 33 33 34 #include <vector>35 34 #include <cassert> 35 #include <map> 36 36 #include "CollisionShape.h" 37 37 -
code/trunk/src/orxonox/objects/collisionshapes/ConeCollisionShape.cc
r3110 r3196 29 29 #include "ConeCollisionShape.h" 30 30 31 #include "BulletCollision/CollisionShapes/btConeShape.h"31 #include <BulletCollision/CollisionShapes/btConeShape.h> 32 32 33 33 #include "core/CoreIncludes.h" 34 34 #include "core/XMLPort.h" 35 #include "tools/BulletConversions.h"36 35 37 36 namespace orxonox -
code/trunk/src/orxonox/objects/collisionshapes/ConeCollisionShape.h
r2662 r3196 31 31 32 32 #include "OrxonoxPrereqs.h" 33 34 33 #include "CollisionShape.h" 35 34 -
code/trunk/src/orxonox/objects/collisionshapes/PlaneCollisionShape.cc
r3110 r3196 29 29 #include "PlaneCollisionShape.h" 30 30 31 #include "BulletCollision/CollisionShapes/btStaticPlaneShape.h"31 #include <BulletCollision/CollisionShapes/btStaticPlaneShape.h> 32 32 33 33 #include "core/CoreIncludes.h" … … 72 72 btCollisionShape* PlaneCollisionShape::createNewShape() const 73 73 { 74 return new btStaticPlaneShape( omni_cast<btVector3>(this->normal_), this->offset_);74 return new btStaticPlaneShape(multi_cast<btVector3>(this->normal_), this->offset_); 75 75 } 76 76 } -
code/trunk/src/orxonox/objects/collisionshapes/PlaneCollisionShape.h
r2662 r3196 32 32 #include "OrxonoxPrereqs.h" 33 33 34 #include "util/Math.h" 34 35 #include "CollisionShape.h" 35 36 -
code/trunk/src/orxonox/objects/collisionshapes/SphereCollisionShape.cc
r3110 r3196 29 29 #include "SphereCollisionShape.h" 30 30 31 #include "BulletCollision/CollisionShapes/btSphereShape.h"31 #include <BulletCollision/CollisionShapes/btSphereShape.h> 32 32 33 33 #include "core/CoreIncludes.h" 34 34 #include "core/XMLPort.h" 35 #include "tools/BulletConversions.h"36 35 37 36 namespace orxonox -
code/trunk/src/orxonox/objects/collisionshapes/SphereCollisionShape.h
r2662 r3196 31 31 32 32 #include "OrxonoxPrereqs.h" 33 34 33 #include "CollisionShape.h" 35 34 -
code/trunk/src/orxonox/objects/collisionshapes/WorldEntityCollisionShape.cc
r3110 r3196 29 29 #include "WorldEntityCollisionShape.h" 30 30 31 #include "BulletCollision/CollisionShapes/btCompoundShape.h"31 #include <BulletCollision/CollisionShapes/btCompoundShape.h> 32 32 33 #include "util/ Exception.h"33 #include "util/OrxAssert.h" 34 34 #include "core/CoreIncludes.h" 35 35 #include "objects/worldentities/WorldEntity.h" -
code/trunk/src/orxonox/objects/collisionshapes/WorldEntityCollisionShape.h
r2662 r3196 31 31 32 32 #include "OrxonoxPrereqs.h" 33 34 33 #include "CompoundCollisionShape.h" 35 34
Note: See TracChangeset
for help on using the changeset viewer.