Phong13 / BulletSharpUnity3d

A fork of the BulletSharp project to make the Bullet Physics Engine usable from C# code in Unity3d

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Debug draws of boxes are twice as big

tsornin opened this issue · comments

UnityEngine.Vector3 size = (bbMax - bbMin).ToUnity();

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

Thanks, I will fix.