Panda3D
 All Classes Functions Variables Enumerations
bulletPersistentManifold.h
1 // Filename: bulletPersistentManifold.h
2 // Created by: enn0x (07Mar10)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef __BULLET_PERSISTENT_MANIFOLD_H__
16 #define __BULLET_PERSISTENT_MANIFOLD_H__
17 
18 #include "pandabase.h"
19 
20 #include "bullet_includes.h"
21 
22 #include "pandaNode.h"
23 
25 
26 ////////////////////////////////////////////////////////////////////
27 // Class : BulletPersistentManifold
28 // Description :
29 ////////////////////////////////////////////////////////////////////
30 class EXPCL_PANDABULLET BulletPersistentManifold {
31 
32 PUBLISHED:
33  INLINE ~BulletPersistentManifold();
34 
35  const PandaNode *get_node0();
36  const PandaNode *get_node1();
37 
38  int get_num_manifold_points() const;
39  BulletManifoldPoint *get_manifold_point(int idx) const;
40  MAKE_SEQ(get_manifold_points, get_num_manifold_points, get_manifold_point);
41 
42  PN_stdfloat get_contact_breaking_threshold() const;
43  PN_stdfloat get_contact_processing_threshold() const;
44 
45  void clear_manifold();
46 
47 public:
48  BulletPersistentManifold(btPersistentManifold *manifold);
49 
50 private:
51  btPersistentManifold *_manifold;
52 };
53 
54 #include "bulletPersistentManifold.I"
55 
56 #endif // __BULLET_PERSISTENT_MANIFOLD_H__
A basic node of the scene graph or data graph.
Definition: pandaNode.h:72