Overte C++ Documentation
CharacterGhostShape.h
1 //
2 // CharacterGhostShape.h
3 // libraries/physics/src
4 //
5 // Created by Andrew Meadows 2016.09.14
6 // Copyright 2016 High Fidelity, Inc.
7 //
8 // Distributed under the Apache License, Version 2.0.
9 // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
10 //
11 
12 #ifndef hifi_CharacterGhostShape_h
13 #define hifi_CharacterGhostShape_h
14 
15 #include <BulletCollision/CollisionShapes/btConvexHullShape.h>
16 
17 class CharacterGhostShape : public btConvexHullShape {
18  // Same as btConvexHullShape but reports an expanded Aabb for larger ghost overlap cache
19 public:
20  CharacterGhostShape(const btConvexHullShape* shape);
21 
22  virtual void getAabb (const btTransform& t, btVector3& aabbMin, btVector3& aabbMax) const override;
23 };
24 
25 #endif // hifi_CharacterGhostShape_h