public override void OnDrawGizmosSelected() { UnityEngine.Vector3 position = transform.position; UnityEngine.Quaternion rotation = transform.rotation; UnityEngine.Vector3 scale = Vector3.one; BUtility.DebugDrawBox(position, rotation, scale, extents, Color.yellow); }
public override void OnDrawGizmosSelected() { Vector3 position = transform.position; Quaternion rotation = transform.rotation; Vector3 scale = m_localScaling; BUtility.DebugDrawBox(position, rotation, scale, extents, Color.yellow); }
public override void DrawBox(ref Vector3 bbMin, ref Vector3 bbMax, ref Matrix trans, ref Vector3 color) { UnityEngine.Vector3 pos = BSExtensionMethods2.ExtractTranslationFromMatrix(ref trans); UnityEngine.Quaternion rot = BSExtensionMethods2.ExtractRotationFromMatrix(ref trans); UnityEngine.Vector3 scale = BSExtensionMethods2.ExtractScaleFromMatrix(ref trans); UnityEngine.Vector3 size = (bbMax - bbMin).ToUnity(); UnityEngine.Color c = new UnityEngine.Color(color.X, color.Y, color.Z); BUtility.DebugDrawBox(pos, rot, scale, size, c); }
public override void OnDrawGizmosSelected() { BUtility.DebugDrawBox(transform.position, transform.rotation, m_localScaling, extents, Color.green); }