|
@@ -22,6 +22,16 @@ INLINE BulletWheel::
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
|
|
+// Function: BulletWheelRaycastInfo::Destructor
|
|
|
|
|
+// Access: Published
|
|
|
|
|
+// Description:
|
|
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
|
|
+INLINE BulletWheelRaycastInfo::
|
|
|
|
|
+~BulletWheelRaycastInfo() {
|
|
|
|
|
+
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Function: BulletWheel::empty
|
|
// Function: BulletWheel::empty
|
|
|
// Access: Public
|
|
// Access: Public
|
|
@@ -37,3 +47,91 @@ empty() {
|
|
|
return BulletWheel(info);
|
|
return BulletWheel(info);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
|
|
+// Function: BulletWheelRaycastInfo::is_in_contact
|
|
|
|
|
+// Access: Public
|
|
|
|
|
+// Description:
|
|
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
|
|
+INLINE bool BulletWheelRaycastInfo::
|
|
|
|
|
+is_in_contact() const {
|
|
|
|
|
+
|
|
|
|
|
+ return _info.m_isInContact;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
|
|
+// Function: BulletWheelRaycastInfo::get_suspension_length
|
|
|
|
|
+// Access: Public
|
|
|
|
|
+// Description:
|
|
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
|
|
+INLINE PN_stdfloat BulletWheelRaycastInfo::
|
|
|
|
|
+get_suspension_length() const {
|
|
|
|
|
+
|
|
|
|
|
+ return _info.m_suspensionLength;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
|
|
+// Function: BulletWheelRaycastInfo::get_contact_point_ws
|
|
|
|
|
+// Access: Public
|
|
|
|
|
+// Description:
|
|
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
|
|
+INLINE LPoint3 BulletWheelRaycastInfo::
|
|
|
|
|
+get_contact_point_ws() const {
|
|
|
|
|
+
|
|
|
|
|
+ return btVector3_to_LPoint3(_info.m_contactPointWS);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
|
|
+// Function: BulletWheelRaycastInfo::get_hard_point_ws
|
|
|
|
|
+// Access: Public
|
|
|
|
|
+// Description:
|
|
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
|
|
+INLINE LPoint3 BulletWheelRaycastInfo::
|
|
|
|
|
+get_hard_point_ws() const {
|
|
|
|
|
+
|
|
|
|
|
+ return btVector3_to_LPoint3(_info.m_hardPointWS);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
|
|
+// Function: BulletWheelRaycastInfo::get_contact_normal_ws
|
|
|
|
|
+// Access: Public
|
|
|
|
|
+// Description:
|
|
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
|
|
+INLINE LVector3 BulletWheelRaycastInfo::
|
|
|
|
|
+get_contact_normal_ws() const {
|
|
|
|
|
+
|
|
|
|
|
+ return btVector3_to_LVector3(_info.m_contactNormalWS);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
|
|
+// Function: BulletWheelRaycastInfo::get_wheel_direction_ws
|
|
|
|
|
+// Access: Public
|
|
|
|
|
+// Description:
|
|
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
|
|
+INLINE LVector3 BulletWheelRaycastInfo::
|
|
|
|
|
+get_wheel_direction_ws() const {
|
|
|
|
|
+
|
|
|
|
|
+ return btVector3_to_LVector3(_info.m_wheelDirectionWS);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
|
|
+// Function: BulletWheelRaycastInfo::get_wheel_axle_ws
|
|
|
|
|
+// Access: Public
|
|
|
|
|
+// Description:
|
|
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
|
|
+INLINE LVector3 BulletWheelRaycastInfo::
|
|
|
|
|
+get_wheel_axle_ws() const {
|
|
|
|
|
+
|
|
|
|
|
+ return btVector3_to_LVector3(_info.m_wheelAxleWS);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
|
|
+// Function: BulletWheelRaycastInfo::get_ground_object
|
|
|
|
|
+// Access: Public
|
|
|
|
|
+// Description:
|
|
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
|
|
+INLINE PandaNode *BulletWheelRaycastInfo::
|
|
|
|
|
+get_ground_object() const {
|
|
|
|
|
+
|
|
|
|
|
+ return _info.m_groundObject ? (PandaNode *)_info.m_groundObject : NULL;
|
|
|
|
|
+}
|
|
|
|
|
+
|