コード例 #1
0
 //Draw Shape Gizmo
 protected override void OnDrawGizmosSelected()
 {
     if (!DrawGizmo)
     {
         return;
     }
     BUtility.DebugDrawCone(transform.position, transform.rotation, transform.localScale, _radius, _height, 1, GizmoColor);
 }
コード例 #2
0
        public override void DrawCone(float radius, float height, int upAxis, 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.DebugDrawCone(pos, rot, scale, radius, height, upAxis, c);
        }