Example #1
0
 public override void DrawGizmos()
 {
     if (GizmoContext.InSelection(this))
     {
         Draw.WireCylinder(transform.position + center, Vector3.up, height, radius, color);
     }
 }
Example #2
0
 public override void DrawGizmos()
 {
     if (GizmoContext.InSelection(this))
     {
         Draw.Line(start.position, end.position);
         Draw.Arrow((end.position - start.position) / 2f, rotation);
     }
 }
Example #3
0
 public override void DrawGizmos()
 {
     if (GizmoContext.InSelection(this))
     {
         // Spawning zone
         Draw.WireSphere(_target.spawnCenter, _target.spawnRadius, Color.green);
         using (Draw.InLocalSpace(transform))
             // Interaction radius
             Draw.WireSphere(Vector3.zero, _target.interactionRadius, Color.red);
     }
 }
Example #4
0
        public override void DrawGizmos()
        {
            if (GizmoContext.InSelection(this))
            {
                int currentFrame = _recorder.clipSize - _recorder.remainingFrames;
                if (_recorder.remainingFrames > 0)
                {
                    Anim.Data.Joint[] joints;
                    Anim.Data.Joint[] joints2;
                    // using (Draw.InLocalSpace(transform))
                    // {
                    var lower = window;
                    if (currentFrame + window > _recorder.clipSize)
                    {
                        lower = _recorder.clipSize - currentFrame;
                    }

                    for (int i = 1; i <= lower; ++i)
                    {
                        joints  = _recorder.clip.frames[currentFrame + i - 1].joints;
                        joints2 = _recorder.clip.frames[currentFrame + i].joints;
                        if (keyJointOnly)
                        {
                            for (int j = 0; j < joints.Length; ++j)
                            {
                                if (joints[j].key)
                                {
                                    // Draw.SolidBox(joints[j].position, float3.zero + size, color);
                                    // Draw.Arrow(joints[j].position, joints2[j].position, Vector3.up, size, color);
                                    Draw.WireSphere(joints[j].position, size, color);
                                    Draw.Line(joints[j].position, joints2[j].position, color);
                                }
                            }
                        }
                        else
                        {
                            for (int j = 0; j < joints.Length; ++j)
                            {
                                // Draw.SolidBox(joints[j].position, float3.zero + size, color);
                                // Draw.Arrow(joints[j].position, joints2[j].position, Vector3.up, size, color);
                                Draw.WireSphere(joints[j].position, size, color);
                                Draw.Line(joints[j].position, joints2[j].position, color);
                            }
                        }
                    }
                }
            }
        }