1 /******************************************************************************* 2 * Copyright 2011 See AUTHORS file. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 ******************************************************************************/ 16 17 #ifndef CollisionObjectWrapper_H 18 #define CollisionObjectWrapper_H 19 20 #include "../../../bullet/BulletCollision/CollisionDispatch/btCollisionObject.h" 21 #include "../../../bullet/BulletCollision/CollisionDispatch/btCollisionObjectWrapper.h" 22 23 /** @author Xoppa */ 24 class CollisionObjectWrapper { 25 btCollisionObjectWrapper wrapper; 26 27 public: 28 CollisionObjectWrapper(btCollisionObjectWrapper* parent, btCollisionShape* shape, btCollisionObject* collisionObject, btTransform& worldTransform, int partId=-1, int index=-1) : 29 wrapper(parent, shape, collisionObject, worldTransform, partId, index) {} 30 31 CollisionObjectWrapper(btCollisionShape* shape, btCollisionObject* collisionObject, btTransform& worldTransform, int partId=-1, int index=-1) : 32 wrapper(0, shape, collisionObject, worldTransform, partId, index) {} 33 34 CollisionObjectWrapper(btCollisionObjectWrapper* parent, btCollisionObject* collisionObject, int partId=-1, int index=-1) : 35 wrapper(parent, collisionObject->getCollisionShape(),collisionObject, collisionObject->getWorldTransform(), partId, index) {} 36 37 CollisionObjectWrapper(btCollisionObject* collisionObject, int partId=-1, int index=-1) : 38 wrapper(0, collisionObject->getCollisionShape(),collisionObject, collisionObject->getWorldTransform(), partId, index) {} 39 40 btCollisionObjectWrapper *getWrapper() { return &wrapper; } 41 }; 42 43 #endif //CollisionObjectWrapper_H 44