예제 #1
0
 public override void OnDrawGizmosSelected()
 {
     UnityEngine.Vector3    position = transform.position;
     UnityEngine.Quaternion rotation = transform.rotation;
     UnityEngine.Vector3    scale    = m_localScaling;
     BUtility.DebugDrawCylinder(position, rotation, scale, halfExtent.x, halfExtent.y, 1, Color.yellow);
 }
예제 #2
0
 public override void DrawCylinder(float radius, float halfHeight, int upAxis, 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.Color      c     = new UnityEngine.Color(color.X, color.Y, color.Z);
     BUtility.DebugDrawCylinder(pos, rot, scale, radius, halfHeight, upAxis, c);
 }
예제 #3
0
 public override void OnDrawGizmosSelected()
 {
     if (drawGizmo == false)
     {
         return;
     }
     UnityEngine.Vector3    position = transform.position;
     UnityEngine.Quaternion rotation = transform.rotation;
     BUtility.DebugDrawCylinder(position, rotation, LocalScaling, halfExtent.x, halfExtent.y, 1, Color.yellow);
 }
 public override void OnDrawGizmosSelected()
 {
     BUtility.DebugDrawCylinder(transform.position, transform.rotation, m_localScaling, halfExtent.x, halfExtent.y, 1, Color.green);
 }