15 #ifndef __BULLET_CONTACT_RESULT_H__
16 #define __BULLET_CONTACT_RESULT_H__
18 #include "pandabase.h"
20 #include "bullet_includes.h"
21 #include "bulletManifoldPoint.h"
39 INLINE
int get_idx0()
const;
40 INLINE
int get_idx1()
const;
41 INLINE
int get_part_id0()
const;
42 INLINE
int get_part_id1()
const;
45 static btManifoldPoint _empty;
67 INLINE
int get_num_contacts()
const;
69 MAKE_SEQ(get_contacts, get_num_contacts, get_contact);
72 #if BT_BULLET_VERSION >= 281
73 virtual bool needsCollision(btBroadphaseProxy *proxy0)
const;
75 virtual btScalar addSingleResult(btManifoldPoint &mp,
76 const btCollisionObjectWrapper *wrap0,
int part_id0,
int idx0,
77 const btCollisionObjectWrapper *wrap1,
int part_id1,
int idx1);
79 virtual btScalar addSingleResult(btManifoldPoint &mp,
80 const btCollisionObject *obj0,
int part_id0,
int idx0,
81 const btCollisionObject *obj1,
int part_id1,
int idx1);
87 #if BT_BULLET_VERSION >= 281
88 void use_filter(btOverlapFilterCallback *cb, btBroadphaseProxy *proxy);
94 btAlignedObjectArray<BulletContact> _contacts;
96 #if BT_BULLET_VERSION >= 281
98 btOverlapFilterCallback *_filter_cb;
99 btBroadphaseProxy *_filter_proxy;
105 #include "bulletContactResult.I"
107 #endif // __BULLET_CONTACT_RESULT_H__
A basic node of the scene graph or data graph.