mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-13 13:20:07 +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);
|
||||
btCylinderShapeZ* cylZShape = new btCylinderShapeZ(halfExtents);
|
||||
shape = cylZShape;
|
||||
shape->setMargin(gUrdfDefaultCollisionMargin);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -251,6 +251,16 @@ public:
|
||||
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
|
||||
{
|
||||
int index = m_objectsWithoutCollisionCheck.findLinearSearch(co);
|
||||
|
Loading…
Reference in New Issue
Block a user