Panda3D
|
00001 // Filename: bulletManifoldPoint.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_MANIFOLD_POINT_H__ 00016 #define __BULLET_MANIFOLD_POINT_H__ 00017 00018 #include "pandabase.h" 00019 00020 #include "bullet_includes.h" 00021 #include "bullet_utils.h" 00022 00023 #include "luse.h" 00024 00025 //////////////////////////////////////////////////////////////////// 00026 // Class : BulletManifoldPoint 00027 // Description : 00028 //////////////////////////////////////////////////////////////////// 00029 class EXPCL_PANDABULLET BulletManifoldPoint { 00030 00031 PUBLISHED: 00032 INLINE ~BulletManifoldPoint(); 00033 00034 int get_lift_time() const; 00035 PN_stdfloat get_distance() const; 00036 PN_stdfloat get_applied_impulse() const; 00037 LPoint3 get_position_world_on_a() const; 00038 LPoint3 get_position_world_on_b() const; 00039 LPoint3 get_local_point_a() const; 00040 LPoint3 get_local_point_b() const; 00041 00042 int get_part_id0() const; 00043 int get_part_id1() const; 00044 int get_index0() const; 00045 int get_index1() const; 00046 00047 public: 00048 BulletManifoldPoint(btManifoldPoint &pt); 00049 00050 private: 00051 btManifoldPoint &_pt; 00052 }; 00053 00054 #include "bulletManifoldPoint.I" 00055 00056 #endif // __BULLET_MANIFOLD_POINT_H__