mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-14 05:40:05 +00:00
Merge remote-tracking branch 'bp/master'
This commit is contained in:
commit
8ba6a6932c
@ -636,6 +636,7 @@ btCollisionShape* BulletURDFImporter::convertURDFToCollisionShape(const UrdfColl
|
|||||||
btVector3 halfExtents(cylRadius, cylRadius, cylHalfLength);
|
btVector3 halfExtents(cylRadius, cylRadius, cylHalfLength);
|
||||||
btCylinderShapeZ* cylZShape = new btCylinderShapeZ(halfExtents);
|
btCylinderShapeZ* cylZShape = new btCylinderShapeZ(halfExtents);
|
||||||
shape = cylZShape;
|
shape = cylZShape;
|
||||||
|
shape->setMargin(gUrdfDefaultCollisionMargin);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -251,6 +251,16 @@ public:
|
|||||||
m_checkCollideWith = m_objectsWithoutCollisionCheck.size() > 0;
|
m_checkCollideWith = m_objectsWithoutCollisionCheck.size() > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int getNumObjectsWithoutCollision() const
|
||||||
|
{
|
||||||
|
return m_objectsWithoutCollisionCheck.size();
|
||||||
|
}
|
||||||
|
|
||||||
|
const btCollisionObject* getObjectWithoutCollision(int index)
|
||||||
|
{
|
||||||
|
return m_objectsWithoutCollisionCheck[index];
|
||||||
|
}
|
||||||
|
|
||||||
virtual bool checkCollideWithOverride(const btCollisionObject* co) const
|
virtual bool checkCollideWithOverride(const btCollisionObject* co) const
|
||||||
{
|
{
|
||||||
int index = m_objectsWithoutCollisionCheck.findLinearSearch(co);
|
int index = m_objectsWithoutCollisionCheck.findLinearSearch(co);
|
||||||
|
Loading…
Reference in New Issue
Block a user