metadriverse / metadrive

MetaDrive: Open-source driving simulator
https://metadriverse.github.io/metadrive/
Apache License 2.0
671 stars 100 forks source link

BulletBoxShape takes Width Length Height as input #688

Open pengzhenghao opened 3 months ago

pengzhenghao commented 3 months ago

Screenshot from 2024-03-27 11-03-09

I found in many places we are using length width height as input. This might cause wrong collision detection??!

QuanyiLi commented 3 months ago

When creating a box shape, the bullet API requires half of the length/width/height. This won't make any thing wrong. If you doubt this, turn on debug_physics_world and debug_static_world to see the results.