public override void DrawSphere(float radius, ref BM.Matrix trans, ref BM.Vector3 color) { var pos = BulletExtensionMethods.ExtractTranslationFromMatrix(ref trans); var rot = BulletExtensionMethods.ExtractRotationFromMatrix(ref trans); var scale = BulletExtensionMethods.ExtractScaleFromMatrix(ref trans); var c = new Color(color.X, color.Y, color.Z); BUtility.DebugDrawSphere(pos, rot, scale, Vector3.one * radius, c); }
public override void DrawSphere(ref BM.Vector3 p, float radius, ref BM.Vector3 color) { var c = new Color(color.X, color.Y, color.Z); BUtility.DebugDrawSphere(p.ToUnity(), Quaternion.identity, Vector3.one, Vector3.one * radius, c); }