mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
Renamed BulletDistanceConstraint to BulletSphericalConstraint
This commit is contained in:
parent
f0ecfd9f8b
commit
b110845659
@ -41,8 +41,6 @@
|
|||||||
bulletCylinderShape.h \
|
bulletCylinderShape.h \
|
||||||
bulletDebugNode.I \
|
bulletDebugNode.I \
|
||||||
bulletDebugNode.h \
|
bulletDebugNode.h \
|
||||||
bulletDistanceConstraint.I \
|
|
||||||
bulletDistanceConstraint.h \
|
|
||||||
bulletGenericConstraint.I \
|
bulletGenericConstraint.I \
|
||||||
bulletGenericConstraint.h \
|
bulletGenericConstraint.h \
|
||||||
bulletGhostNode.I \
|
bulletGhostNode.I \
|
||||||
@ -77,6 +75,8 @@
|
|||||||
bulletSoftBodyWorldInfo.h \
|
bulletSoftBodyWorldInfo.h \
|
||||||
bulletSphereShape.I \
|
bulletSphereShape.I \
|
||||||
bulletSphereShape.h \
|
bulletSphereShape.h \
|
||||||
|
bulletSphericalConstraint.I \
|
||||||
|
bulletSphericalConstraint.h \
|
||||||
bulletTriangleMesh.I \
|
bulletTriangleMesh.I \
|
||||||
bulletTriangleMesh.h \
|
bulletTriangleMesh.h \
|
||||||
bulletTriangleMeshShape.I \
|
bulletTriangleMeshShape.I \
|
||||||
@ -108,7 +108,6 @@
|
|||||||
bulletConvexPointCloudShape.cxx \
|
bulletConvexPointCloudShape.cxx \
|
||||||
bulletCylinderShape.cxx \
|
bulletCylinderShape.cxx \
|
||||||
bulletDebugNode.cxx \
|
bulletDebugNode.cxx \
|
||||||
bulletDistanceConstraint.cxx \
|
|
||||||
bulletGenericConstraint.cxx \
|
bulletGenericConstraint.cxx \
|
||||||
bulletGhostNode.cxx \
|
bulletGhostNode.cxx \
|
||||||
bulletHeightfieldShape.cxx \
|
bulletHeightfieldShape.cxx \
|
||||||
@ -126,6 +125,7 @@
|
|||||||
bulletSoftBodyShape.cxx \
|
bulletSoftBodyShape.cxx \
|
||||||
bulletSoftBodyWorldInfo.cxx \
|
bulletSoftBodyWorldInfo.cxx \
|
||||||
bulletSphereShape.cxx \
|
bulletSphereShape.cxx \
|
||||||
|
bulletSphericalConstraint.cxx \
|
||||||
bulletTriangleMesh.cxx \
|
bulletTriangleMesh.cxx \
|
||||||
bulletTriangleMeshShape.cxx \
|
bulletTriangleMeshShape.cxx \
|
||||||
bulletVehicle.cxx \
|
bulletVehicle.cxx \
|
||||||
@ -167,8 +167,6 @@
|
|||||||
bulletCylinderShape.h \
|
bulletCylinderShape.h \
|
||||||
bulletDebugNode.I \
|
bulletDebugNode.I \
|
||||||
bulletDebugNode.h \
|
bulletDebugNode.h \
|
||||||
bulletDistanceConstraint.I \
|
|
||||||
bulletDistanceConstraint.h \
|
|
||||||
bulletGenericConstraint.I \
|
bulletGenericConstraint.I \
|
||||||
bulletGenericConstraint.h \
|
bulletGenericConstraint.h \
|
||||||
bulletGhostNode.I \
|
bulletGhostNode.I \
|
||||||
@ -203,6 +201,8 @@
|
|||||||
bulletSoftBodyWorldInfo.h \
|
bulletSoftBodyWorldInfo.h \
|
||||||
bulletSphereShape.I \
|
bulletSphereShape.I \
|
||||||
bulletSphereShape.h \
|
bulletSphereShape.h \
|
||||||
|
bulletSphericalConstraint.I \
|
||||||
|
bulletSphericalConstraint.h \
|
||||||
bulletTriangleMesh.I \
|
bulletTriangleMesh.I \
|
||||||
bulletTriangleMesh.h \
|
bulletTriangleMesh.h \
|
||||||
bulletTriangleMeshShape.I \
|
bulletTriangleMeshShape.I \
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Filename: bulletDistanceConstraint.I
|
// Filename: bulletSphericalConstraint.I
|
||||||
// Created by: enn0x (01Mar10)
|
// Created by: enn0x (01Mar10)
|
||||||
//
|
//
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
@ -13,12 +13,12 @@
|
|||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Function: BulletDistanceConstraint::Destructor
|
// Function: BulletSphericalConstraint::Destructor
|
||||||
// Access: Published
|
// Access: Published
|
||||||
// Description:
|
// Description:
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
INLINE BulletDistanceConstraint::
|
INLINE BulletSphericalConstraint::
|
||||||
~BulletDistanceConstraint() {
|
~BulletSphericalConstraint() {
|
||||||
|
|
||||||
delete _constraint;
|
delete _constraint;
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
// Filename: bulletDistanceConstraint.cxx
|
// Filename: bulletSphericalConstraint.cxx
|
||||||
// Created by: enn0x (01Mar10)
|
// Created by: enn0x (01Mar10)
|
||||||
//
|
//
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
@ -12,18 +12,18 @@
|
|||||||
//
|
//
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#include "bulletDistanceConstraint.h"
|
#include "bulletSphericalConstraint.h"
|
||||||
#include "bulletRigidBodyNode.h"
|
#include "bulletRigidBodyNode.h"
|
||||||
|
|
||||||
TypeHandle BulletDistanceConstraint::_type_handle;
|
TypeHandle BulletSphericalConstraint::_type_handle;
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Function: BulletDistanceConstraint::Constructor
|
// Function: BulletSphericalConstraint::Constructor
|
||||||
// Access: Published
|
// Access: Published
|
||||||
// Description:
|
// Description:
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
BulletDistanceConstraint::
|
BulletSphericalConstraint::
|
||||||
BulletDistanceConstraint(const BulletRigidBodyNode *node_a,
|
BulletSphericalConstraint(const BulletRigidBodyNode *node_a,
|
||||||
const LPoint3f &pivot_a) {
|
const LPoint3f &pivot_a) {
|
||||||
|
|
||||||
btRigidBody *ptr_a = btRigidBody::upcast(node_a->get_object());
|
btRigidBody *ptr_a = btRigidBody::upcast(node_a->get_object());
|
||||||
@ -33,12 +33,12 @@ BulletDistanceConstraint(const BulletRigidBodyNode *node_a,
|
|||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Function: BulletDistanceConstraint::Constructor
|
// Function: BulletSphericalConstraint::Constructor
|
||||||
// Access: Published
|
// Access: Published
|
||||||
// Description:
|
// Description:
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
BulletDistanceConstraint::
|
BulletSphericalConstraint::
|
||||||
BulletDistanceConstraint(const BulletRigidBodyNode *node_a,
|
BulletSphericalConstraint(const BulletRigidBodyNode *node_a,
|
||||||
const BulletRigidBodyNode *node_b,
|
const BulletRigidBodyNode *node_b,
|
||||||
const LPoint3f &pivot_a,
|
const LPoint3f &pivot_a,
|
||||||
const LPoint3f &pivot_b) {
|
const LPoint3f &pivot_b) {
|
||||||
@ -53,22 +53,22 @@ BulletDistanceConstraint(const BulletRigidBodyNode *node_a,
|
|||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Function: BulletDistanceConstraint::ptr
|
// Function: BulletSphericalConstraint::ptr
|
||||||
// Access: Public
|
// Access: Public
|
||||||
// Description:
|
// Description:
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
btTypedConstraint *BulletDistanceConstraint::
|
btTypedConstraint *BulletSphericalConstraint::
|
||||||
ptr() const {
|
ptr() const {
|
||||||
|
|
||||||
return _constraint;
|
return _constraint;
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Function: BulletDistanceConstraint::set_pivot_a
|
// Function: BulletSphericalConstraint::set_pivot_a
|
||||||
// Access: Published
|
// Access: Published
|
||||||
// Description:
|
// Description:
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
void BulletDistanceConstraint::
|
void BulletSphericalConstraint::
|
||||||
set_pivot_a(const LPoint3f &pivot_a) {
|
set_pivot_a(const LPoint3f &pivot_a) {
|
||||||
|
|
||||||
nassertv(!pivot_a.is_nan());
|
nassertv(!pivot_a.is_nan());
|
||||||
@ -76,11 +76,11 @@ set_pivot_a(const LPoint3f &pivot_a) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Function: BulletDistanceConstraint::set_pivot_b
|
// Function: BulletSphericalConstraint::set_pivot_b
|
||||||
// Access: Published
|
// Access: Published
|
||||||
// Description:
|
// Description:
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
void BulletDistanceConstraint::
|
void BulletSphericalConstraint::
|
||||||
set_pivot_b(const LPoint3f &pivot_b) {
|
set_pivot_b(const LPoint3f &pivot_b) {
|
||||||
|
|
||||||
nassertv(!pivot_b.is_nan());
|
nassertv(!pivot_b.is_nan());
|
||||||
@ -88,22 +88,22 @@ set_pivot_b(const LPoint3f &pivot_b) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Function: BulletDistanceConstraint::set_pivot_in_a
|
// Function: BulletSphericalConstraint::set_pivot_in_a
|
||||||
// Access: Published
|
// Access: Published
|
||||||
// Description:
|
// Description:
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
LPoint3f BulletDistanceConstraint::
|
LPoint3f BulletSphericalConstraint::
|
||||||
get_pivot_in_a() const {
|
get_pivot_in_a() const {
|
||||||
|
|
||||||
return btVector3_to_LPoint3f(_constraint->getPivotInA());
|
return btVector3_to_LPoint3f(_constraint->getPivotInA());
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Function: BulletDistanceConstraint::set_pivot_in_b
|
// Function: BulletSphericalConstraint::set_pivot_in_b
|
||||||
// Access: Published
|
// Access: Published
|
||||||
// Description:
|
// Description:
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
LPoint3f BulletDistanceConstraint::
|
LPoint3f BulletSphericalConstraint::
|
||||||
get_pivot_in_b() const {
|
get_pivot_in_b() const {
|
||||||
|
|
||||||
return btVector3_to_LPoint3f(_constraint->getPivotInB());
|
return btVector3_to_LPoint3f(_constraint->getPivotInB());
|
@ -1,4 +1,4 @@
|
|||||||
// Filename: bulletDistanceConstraint.h
|
// Filename: bulletSphericalConstraint.h
|
||||||
// Created by: enn0x (01Mar10)
|
// Created by: enn0x (01Mar10)
|
||||||
//
|
//
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
@ -12,8 +12,8 @@
|
|||||||
//
|
//
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#ifndef __BULLET_DISTANCE_CONSTRAINT_H__
|
#ifndef __BULLET_SPHERICAL_CONSTRAINT_H__
|
||||||
#define __BULLET_DISTANCE_CONSTRAINT_H__
|
#define __BULLET_SPHERICAL_CONSTRAINT_H__
|
||||||
|
|
||||||
#include "pandabase.h"
|
#include "pandabase.h"
|
||||||
|
|
||||||
@ -26,19 +26,19 @@
|
|||||||
class BulletRigidBodyNode;
|
class BulletRigidBodyNode;
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Class : BulletDistanceConstraint
|
// Class : BulletSphericalConstraint
|
||||||
// Description :
|
// Description :
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
class EXPCL_PANDABULLET BulletDistanceConstraint : public BulletConstraint {
|
class EXPCL_PANDABULLET BulletSphericalConstraint : public BulletConstraint {
|
||||||
|
|
||||||
PUBLISHED:
|
PUBLISHED:
|
||||||
BulletDistanceConstraint(const BulletRigidBodyNode *node_a,
|
BulletSphericalConstraint(const BulletRigidBodyNode *node_a,
|
||||||
const LPoint3f &pivot_a);
|
const LPoint3f &pivot_a);
|
||||||
BulletDistanceConstraint(const BulletRigidBodyNode *node_a,
|
BulletSphericalConstraint(const BulletRigidBodyNode *node_a,
|
||||||
const BulletRigidBodyNode *node_b,
|
const BulletRigidBodyNode *node_b,
|
||||||
const LPoint3f &pivot_a,
|
const LPoint3f &pivot_a,
|
||||||
const LPoint3f &pivot_b);
|
const LPoint3f &pivot_b);
|
||||||
INLINE ~BulletDistanceConstraint();
|
INLINE ~BulletSphericalConstraint();
|
||||||
|
|
||||||
void set_pivot_a(const LPoint3f &pivot_a);
|
void set_pivot_a(const LPoint3f &pivot_a);
|
||||||
void set_pivot_b(const LPoint3f &pivot_b);
|
void set_pivot_b(const LPoint3f &pivot_b);
|
||||||
@ -59,7 +59,7 @@ public:
|
|||||||
}
|
}
|
||||||
static void init_type() {
|
static void init_type() {
|
||||||
BulletConstraint::init_type();
|
BulletConstraint::init_type();
|
||||||
register_type(_type_handle, "BulletDistanceConstraint",
|
register_type(_type_handle, "BulletSphericalConstraint",
|
||||||
BulletConstraint::get_class_type());
|
BulletConstraint::get_class_type());
|
||||||
}
|
}
|
||||||
virtual TypeHandle get_type() const {
|
virtual TypeHandle get_type() const {
|
||||||
@ -74,6 +74,6 @@ private:
|
|||||||
static TypeHandle _type_handle;
|
static TypeHandle _type_handle;
|
||||||
};
|
};
|
||||||
|
|
||||||
#include "bulletDistanceConstraint.I"
|
#include "bulletSphericalConstraint.I"
|
||||||
|
|
||||||
#endif // __BULLET_DISTANCE_CONSTRAINT_H__
|
#endif // __BULLET_SPHERICAL_CONSTRAINT_H__
|
@ -15,7 +15,6 @@
|
|||||||
#include "bulletCharacterControllerNode.cxx"
|
#include "bulletCharacterControllerNode.cxx"
|
||||||
#include "bulletCylinderShape.cxx"
|
#include "bulletCylinderShape.cxx"
|
||||||
#include "bulletDebugNode.cxx"
|
#include "bulletDebugNode.cxx"
|
||||||
#include "bulletDistanceConstraint.cxx"
|
|
||||||
#include "bulletGenericConstraint.cxx"
|
#include "bulletGenericConstraint.cxx"
|
||||||
#include "bulletGhostNode.cxx"
|
#include "bulletGhostNode.cxx"
|
||||||
#include "bulletHelper.cxx"
|
#include "bulletHelper.cxx"
|
||||||
@ -28,6 +27,7 @@
|
|||||||
#include "bulletShape.cxx"
|
#include "bulletShape.cxx"
|
||||||
#include "bulletSliderConstraint.cxx"
|
#include "bulletSliderConstraint.cxx"
|
||||||
#include "bulletSphereShape.cxx"
|
#include "bulletSphereShape.cxx"
|
||||||
|
#include "bulletSphericalConstraint.cxx"
|
||||||
#include "bulletSoftBodyNode.cxx"
|
#include "bulletSoftBodyNode.cxx"
|
||||||
#include "bulletSoftBodyConfig.cxx"
|
#include "bulletSoftBodyConfig.cxx"
|
||||||
#include "bulletSoftBodyMaterial.cxx"
|
#include "bulletSoftBodyMaterial.cxx"
|
||||||
|
@ -25,7 +25,6 @@
|
|||||||
#include "bulletConvexPointCloudShape.h"
|
#include "bulletConvexPointCloudShape.h"
|
||||||
#include "bulletCylinderShape.h"
|
#include "bulletCylinderShape.h"
|
||||||
#include "bulletDebugNode.h"
|
#include "bulletDebugNode.h"
|
||||||
#include "bulletDistanceConstraint.h"
|
|
||||||
#include "bulletGenericConstraint.h"
|
#include "bulletGenericConstraint.h"
|
||||||
#include "bulletGhostNode.h"
|
#include "bulletGhostNode.h"
|
||||||
#include "bulletHeightfieldShape.h"
|
#include "bulletHeightfieldShape.h"
|
||||||
@ -35,6 +34,7 @@
|
|||||||
#include "bulletShape.h"
|
#include "bulletShape.h"
|
||||||
#include "bulletSliderConstraint.h"
|
#include "bulletSliderConstraint.h"
|
||||||
#include "bulletSphereShape.h"
|
#include "bulletSphereShape.h"
|
||||||
|
#include "bulletSphericalConstraint.h"
|
||||||
#include "bulletSoftBodyNode.h"
|
#include "bulletSoftBodyNode.h"
|
||||||
#include "bulletSoftBodyShape.h"
|
#include "bulletSoftBodyShape.h"
|
||||||
#include "bulletTriangleMesh.h"
|
#include "bulletTriangleMesh.h"
|
||||||
@ -149,7 +149,7 @@ init_libbullet() {
|
|||||||
BulletConvexPointCloudShape::init_type();
|
BulletConvexPointCloudShape::init_type();
|
||||||
BulletCylinderShape::init_type();
|
BulletCylinderShape::init_type();
|
||||||
BulletDebugNode::init_type();
|
BulletDebugNode::init_type();
|
||||||
BulletDistanceConstraint::init_type();
|
BulletSphericalConstraint::init_type();
|
||||||
BulletGenericConstraint::init_type();
|
BulletGenericConstraint::init_type();
|
||||||
BulletGhostNode::init_type();
|
BulletGhostNode::init_type();
|
||||||
BulletHeightfieldShape::init_type();
|
BulletHeightfieldShape::init_type();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user