22BulletManifoldPoint(btManifoldPoint &pt)
42 this->_pt = other._pt;
49int BulletManifoldPoint::
50get_life_time()
const {
53 return _pt.getLifeTime();
59PN_stdfloat BulletManifoldPoint::
63 return (PN_stdfloat)_pt.getDistance();
69PN_stdfloat BulletManifoldPoint::
70get_applied_impulse()
const {
73 return (PN_stdfloat)_pt.getAppliedImpulse();
79LPoint3 BulletManifoldPoint::
80get_position_world_on_a()
const {
83 return btVector3_to_LPoint3(_pt.getPositionWorldOnA());
89LPoint3 BulletManifoldPoint::
90get_position_world_on_b()
const {
93 return btVector3_to_LPoint3(_pt.getPositionWorldOnB());
99LVector3 BulletManifoldPoint::
100get_normal_world_on_b()
const {
103 return btVector3_to_LVector3(_pt.m_normalWorldOnB);
109LPoint3 BulletManifoldPoint::
110get_local_point_a()
const {
113 return btVector3_to_LPoint3(_pt.m_localPointA);
119LPoint3 BulletManifoldPoint::
120get_local_point_b()
const {
123 return btVector3_to_LPoint3(_pt.m_localPointB);
129int BulletManifoldPoint::
130get_part_id0()
const {
133 return _pt.m_partId0;
139int BulletManifoldPoint::
140get_part_id1()
const {
143 return _pt.m_partId1;
149int BulletManifoldPoint::
159int BulletManifoldPoint::
169void BulletManifoldPoint::
170set_lateral_friction_initialized(
bool value) {
173#if BT_BULLET_VERSION >= 285
175 _pt.m_contactPointFlags |= BT_CONTACT_FLAG_LATERAL_FRICTION_INITIALIZED;
177 _pt.m_contactPointFlags &= ~BT_CONTACT_FLAG_LATERAL_FRICTION_INITIALIZED;
180 _pt.m_lateralFrictionInitialized = value;
187bool BulletManifoldPoint::
188get_lateral_friction_initialized()
const {
191#if BT_BULLET_VERSION >= 285
192 return (_pt.m_contactPointFlags & BT_CONTACT_FLAG_LATERAL_FRICTION_INITIALIZED) != 0;
194 return _pt.m_lateralFrictionInitialized;
201void BulletManifoldPoint::
202set_lateral_friction_dir1(
const LVecBase3 &dir) {
205 _pt.m_lateralFrictionDir1 = LVecBase3_to_btVector3(dir);
211LVector3 BulletManifoldPoint::
212get_lateral_friction_dir1()
const {
215 return btVector3_to_LVector3(_pt.m_lateralFrictionDir1);
221void BulletManifoldPoint::
222set_lateral_friction_dir2(
const LVecBase3 &dir) {
225 _pt.m_lateralFrictionDir2 = LVecBase3_to_btVector3(dir);
231LVector3 BulletManifoldPoint::
232get_lateral_friction_dir2()
const {
235 return btVector3_to_LVector3(_pt.m_lateralFrictionDir2);
241void BulletManifoldPoint::
242set_contact_motion1(PN_stdfloat value) {
245 _pt.m_contactMotion1 = (btScalar)value;
251PN_stdfloat BulletManifoldPoint::
252get_contact_motion1()
const {
255 return (PN_stdfloat)_pt.m_contactMotion1;
261void BulletManifoldPoint::
262set_contact_motion2(PN_stdfloat value) {
265 _pt.m_contactMotion2 = (btScalar)value;
271PN_stdfloat BulletManifoldPoint::
272get_contact_motion2()
const {
275 return (PN_stdfloat)_pt.m_contactMotion2;
281void BulletManifoldPoint::
282set_combined_friction(PN_stdfloat value) {
285 _pt.m_combinedFriction = (btScalar)value;
291PN_stdfloat BulletManifoldPoint::
292get_combined_friction()
const {
295 return (PN_stdfloat)_pt.m_combinedFriction;
301void BulletManifoldPoint::
302set_combined_restitution(PN_stdfloat value) {
305 _pt.m_combinedRestitution = (btScalar)value;
311PN_stdfloat BulletManifoldPoint::
312get_combined_restitution()
const {
315 return (PN_stdfloat)_pt.m_combinedRestitution;
321void BulletManifoldPoint::
322set_applied_impulse(PN_stdfloat value) {
325 _pt.m_appliedImpulse = (btScalar)value;
331void BulletManifoldPoint::
332set_applied_impulse_lateral1(PN_stdfloat value) {
335 _pt.m_appliedImpulseLateral1 = (btScalar)value;
341PN_stdfloat BulletManifoldPoint::
342get_applied_impulse_lateral1()
const {
345 return (PN_stdfloat)_pt.m_appliedImpulseLateral1;
351void BulletManifoldPoint::
352set_applied_impulse_lateral2(PN_stdfloat value) {
355 _pt.m_appliedImpulseLateral2 = (btScalar)value;
361PN_stdfloat BulletManifoldPoint::
362get_applied_impulse_lateral2()
const {
365 return (PN_stdfloat)_pt.m_appliedImpulseLateral2;
371void BulletManifoldPoint::
372set_contact_cfm1(PN_stdfloat value) {
375#if BT_BULLET_VERSION < 285
376 _pt.m_contactCFM1 = (btScalar)value;
383PN_stdfloat BulletManifoldPoint::
384get_contact_cfm1()
const {
387#if BT_BULLET_VERSION < 285
388 return (PN_stdfloat)_pt.m_contactCFM1;
397void BulletManifoldPoint::
398set_contact_cfm2(PN_stdfloat value) {
401#if BT_BULLET_VERSION < 285
402 _pt.m_contactCFM2 = (btScalar)value;
409PN_stdfloat BulletManifoldPoint::
410get_contact_cfm2()
const {
413#if BT_BULLET_VERSION < 285
414 return (PN_stdfloat)_pt.m_contactCFM2;
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Similar to MutexHolder, but for a light mutex.