renamed CCylinder to Capsule globally
git-svn-id: svn://anubis/misc/OdeWorld@201 bd8a9e45-a331-0410-811e-c64571078777
This commit is contained in:
parent
af7060b853
commit
5879a4b953
10
OdeWorld.cc
10
OdeWorld.cc
@ -185,7 +185,7 @@ dGeomID OdeWorld::Object::cloneGeom(dGeomID geom, dBodyID body)
|
|||||||
id = dCreateBox(space, size[0], size[1], size[2]);
|
id = dCreateBox(space, size[0], size[1], size[2]);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case dCCylinderClass:
|
case dCapsuleClass:
|
||||||
{
|
{
|
||||||
dReal radius, length;
|
dReal radius, length;
|
||||||
dGeomCylinderGetParams(geom, &radius, &length);
|
dGeomCylinderGetParams(geom, &radius, &length);
|
||||||
@ -195,8 +195,8 @@ dGeomID OdeWorld::Object::cloneGeom(dGeomID geom, dBodyID body)
|
|||||||
case dCylinderClass:
|
case dCylinderClass:
|
||||||
{
|
{
|
||||||
dReal radius, length;
|
dReal radius, length;
|
||||||
dGeomCCylinderGetParams(geom, &radius, &length);
|
dGeomCapsuleGetParams(geom, &radius, &length);
|
||||||
id = dCreateCCylinder(space, radius, length);
|
id = dCreateCapsule(space, radius, length);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case dPlaneClass:
|
case dPlaneClass:
|
||||||
@ -294,11 +294,11 @@ bool OdeWorld::Object::addCylinder(refptr< std::vector<float> > args)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool OdeWorld::Object::addCCylinder(refptr< std::vector<float> > args)
|
bool OdeWorld::Object::addCapsule(refptr< std::vector<float> > args)
|
||||||
{
|
{
|
||||||
if (args->size() != 8)
|
if (args->size() != 8)
|
||||||
return false;
|
return false;
|
||||||
dGeomID id = dCreateCCylinder(0,
|
dGeomID id = dCreateCapsule(0,
|
||||||
m_scale * (*args)[0], m_scale * (*args)[1]);
|
m_scale * (*args)[0], m_scale * (*args)[1]);
|
||||||
dMass mass;
|
dMass mass;
|
||||||
dMassSetCappedCylinder(&mass, 1.0, 3, m_scale * (*args)[0],
|
dMassSetCappedCylinder(&mass, 1.0, 3, m_scale * (*args)[0],
|
||||||
|
@ -32,7 +32,7 @@ class OdeWorld
|
|||||||
bool addBox(refptr< std::vector<float> > args);
|
bool addBox(refptr< std::vector<float> > args);
|
||||||
bool addSphere(refptr< std::vector<float> > args);
|
bool addSphere(refptr< std::vector<float> > args);
|
||||||
bool addCylinder(refptr< std::vector<float> > args);
|
bool addCylinder(refptr< std::vector<float> > args);
|
||||||
bool addCCylinder(refptr< std::vector<float> > args);
|
bool addCapsule(refptr< std::vector<float> > args);
|
||||||
bool addPlane(refptr< std::vector<float> > args);
|
bool addPlane(refptr< std::vector<float> > args);
|
||||||
void addForce(dReal fx, dReal fy, dReal fz);
|
void addForce(dReal fx, dReal fy, dReal fz);
|
||||||
void addRelForce(dReal fx, dReal fy, dReal fz);
|
void addRelForce(dReal fx, dReal fy, dReal fz);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user