Panda3D
 All Classes Functions Variables Enumerations
bulletPersistentManifold.h
00001 // Filename: bulletPersistentManifold.h
00002 // Created by:  enn0x (07Mar10)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #ifndef __BULLET_PERSISTENT_MANIFOLD_H__
00016 #define __BULLET_PERSISTENT_MANIFOLD_H__
00017 
00018 #include "pandabase.h"
00019 
00020 #include "bullet_includes.h"
00021 
00022 #include "pandaNode.h"
00023 
00024 class BulletManifoldPoint;
00025 
00026 ////////////////////////////////////////////////////////////////////
00027 //       Class : BulletPersistentManifold
00028 // Description : 
00029 ////////////////////////////////////////////////////////////////////
00030 class EXPCL_PANDABULLET BulletPersistentManifold {
00031 
00032 PUBLISHED:
00033   INLINE ~BulletPersistentManifold();
00034 
00035   PandaNode *get_node0();
00036   PandaNode *get_node1();
00037 
00038   int get_num_manifold_points() const;
00039   BulletManifoldPoint *get_manifold_point(int idx) const;
00040   MAKE_SEQ(get_manifold_points, get_num_manifold_points, get_manifold_point);
00041 
00042   PN_stdfloat get_contact_breaking_threshold() const;
00043   PN_stdfloat get_contact_processing_threshold() const;
00044 
00045   void clear_manifold();
00046 
00047 public:
00048   BulletPersistentManifold(btPersistentManifold *manifold);
00049 
00050 private:
00051   btPersistentManifold *_manifold;
00052 };
00053 
00054 #include "bulletPersistentManifold.I"
00055 
00056 #endif // __BULLET_PERSISTENT_MANIFOLD_H__
 All Classes Functions Variables Enumerations