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