protected virtual void OnDrawGizmosSelected() { if (debrisCentre != null) { if (debris2D == true) { SGT_Handles.Colour = new Color(1.0f, 1.0f, 1.0f, 0.5f); SGT_Handles.DrawDisc(debrisCentre.transform.position, transform.rotation, DebrisContainerInnerRadius, DebrisContainerOuterRadius); } else { SGT_Handles.Colour = new Color(1.0f, 1.0f, 1.0f, 0.5f); SGT_Handles.DrawSphere(debrisCentre.transform.position, DebrisContainerInnerRadius, DebrisContainerOuterRadius); } } }
protected virtual void OnDrawGizmosSelected() { if (thrusterFlame == true) { var min = thrusterFlameScale * 2.0f; var max = thrusterFlameScale * 2.0f + thrusterFlameScaleChange * 2.0f; var f = 1.0f - thrusterFlameScaleFlicker; SGT_Handles.Colour = new Color(1.0f, 1.0f, 0.0f, 0.25f); SGT_Handles.DrawSphere(transform.position, transform.rotation, min, min * f); SGT_Handles.Colour = new Color(1.0f, 1.0f, 0.0f, 0.5f); SGT_Handles.DrawSphere(transform.position, transform.rotation, max, max * f); } if (thrusterFlare == true) { var min = thrusterFlareScale * 2.0f; var max = thrusterFlareScale * 2.0f + thrusterFlareScaleChange * 2.0f; var f = 1.0f - thrusterFlareScaleFlicker; SGT_Handles.Colour = new Color(1.0f, 1.0f, 1.0f, 0.25f); SGT_Handles.DrawSphere(transform.position, transform.rotation, min, min * f); SGT_Handles.Colour = new Color(1.0f, 1.0f, 1.0f, 0.5f); SGT_Handles.DrawSphere(transform.position, transform.rotation, max, max * f); } }
protected virtual void OnDrawGizmosSelected() { SGT_Handles.Colour = new Color(1.0f, 1.0f, 1.0f, 0.5f); SGT_Handles.DrawSphere(transform.position, meshRadius); SGT_Handles.Colour = new Color(1.0f, 1.0f, 1.0f, 0.5f); SGT_Handles.DrawSphere(transform.position, meshRadius + meshHeight); }
protected virtual void OnDrawGizmosSelected() { SGT_Handles.Colour = new Color(1.0f, 1.0f, 1.0f, 0.5f); SGT_Handles.DrawSphere(transform.position, gravitySourceRadius); SGT_Handles.Colour = new Color(1.0f, 1.0f, 1.0f, 0.25f); SGT_Handles.DrawSphere(transform.position, gravitySourceRadius + gravitySourceHeight); }