Phong13 / BulletSharpUnity3d

A fork of the BulletSharp project to make the Bullet Physics Engine usable from C# code in Unity3d
Other
547 stars 145 forks source link

Debug draws of boxes are twice as big #45

Closed tsornin closed 5 years ago

tsornin commented 6 years ago

https://github.com/Phong13/BulletSharpUnity3d/blob/d3cca380abfb8a96405fcaa6fd781d9d47de549f/UnityProject/Assets/BulletUnity/Scripts/DebugDrawUnity.cs#L29

This size needs to be halved because box size is a half-extent in Bullet: UnityEngine.Vector3 size = (bbMax - bbMin).ToUnity() / 2;

Phong13 commented 6 years ago

Thanks, I will fix.

WeersProductions commented 5 years ago

56