bulletphysics / bullet3

Bullet Physics SDK: real-time collision detection and multi-physics simulation for VR, games, visual effects, robotics, machine learning etc.
http://bulletphysics.org
Other
12.18k stars 2.85k forks source link

PyBullet :getCollisionShapeData fun cant get right pos of objects #4602

Open zjh-de-github opened 2 months ago

zjh-de-github commented 2 months ago

I use PyBullet and I've loaded a couple of obstacles into my environment:

506b9c6e0fda8607c0df482f2ff3519

while their position was set to:[1,0,1]、[0,1,1]、[-1,0,1]、[0,-1,1] Then I expect to use getCollisionShapeData() to iterate over the obstacle information shown below:

25710896b893651a244ce8fea1b428d

But there's a clear problem with the location of the output, which is not the same as when I loaded the model:

1bb805a7ae97a36d786bcd12c8bc989

Can some kind man answer my question