91 lines
1.3 KiB
Text
91 lines
1.3 KiB
Text
|
/**
|
||
|
* PANDA 3D SOFTWARE
|
||
|
* Copyright (c) Carnegie Mellon University. All rights reserved.
|
||
|
*
|
||
|
* All use of this software is subject to the terms of the revised BSD
|
||
|
* license. You should have received a copy of this license along
|
||
|
* with this source code in a file named "LICENSE."
|
||
|
*
|
||
|
* @file bulletContactCallbackData.I
|
||
|
* @author enn0x
|
||
|
* @date 2012-11-22
|
||
|
*/
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
*/
|
||
|
INLINE BulletContactCallbackData::
|
||
|
BulletContactCallbackData(BulletManifoldPoint &mp, PandaNode *node0, PandaNode *node1, int id0, int id1, int index0, int index1) :
|
||
|
_mp(mp),
|
||
|
_node0(node0),
|
||
|
_node1(node1),
|
||
|
_id0(id0),
|
||
|
_id1(id1),
|
||
|
_index0(index0),
|
||
|
_index1(index1) {
|
||
|
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
*/
|
||
|
INLINE BulletManifoldPoint &BulletContactCallbackData::
|
||
|
get_manifold() const {
|
||
|
|
||
|
return _mp;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
*/
|
||
|
INLINE PandaNode *BulletContactCallbackData::
|
||
|
get_node0() const {
|
||
|
|
||
|
return _node0;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
*/
|
||
|
INLINE PandaNode *BulletContactCallbackData::
|
||
|
get_node1() const {
|
||
|
|
||
|
return _node1;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
*/
|
||
|
INLINE int BulletContactCallbackData::
|
||
|
get_part_id0() const {
|
||
|
|
||
|
return _id0;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
*/
|
||
|
INLINE int BulletContactCallbackData::
|
||
|
get_part_id1() const {
|
||
|
|
||
|
return _id1;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
*/
|
||
|
INLINE int BulletContactCallbackData::
|
||
|
get_index0() const {
|
||
|
|
||
|
return _index0;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
*/
|
||
|
INLINE int BulletContactCallbackData::
|
||
|
get_index1() const {
|
||
|
|
||
|
return _index1;
|
||
|
}
|