Panda3D
Loading...
Searching...
No Matches
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 */
28class EXPCL_PANDABULLET BulletPersistentManifold {
29
30PUBLISHED:
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 BulletManifoldPoint __get_manifold_point(int idx) const;
39 MAKE_SEQ(get_manifold_points, get_num_manifold_points, __get_manifold_point);
40
41 PN_stdfloat get_contact_breaking_threshold() const;
42 PN_stdfloat get_contact_processing_threshold() const;
43
44 void clear_manifold();
45
46 MAKE_PROPERTY(node0, get_node0);
47 MAKE_PROPERTY(node1, get_node1);
48 MAKE_SEQ_PROPERTY(manifold_points, get_num_manifold_points, __get_manifold_point);
49 MAKE_PROPERTY(contact_breaking_threshold, get_contact_breaking_threshold);
50 MAKE_PROPERTY(contact_processing_threshold, get_contact_processing_threshold);
51
52public:
53 BulletPersistentManifold(btPersistentManifold *manifold);
54
55private:
56 btPersistentManifold *_manifold;
57};
58
60
61#endif // __BULLET_PERSISTENT_MANIFOLD_H__
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A basic node of the scene graph or data graph.
Definition pandaNode.h:65
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.