public override void Construct()
 {
     ConeSphereBase = new ExtConeSphereBase(transform.position,
                                            transform.rotation,
                                            transform.lossyScale,
                                            0.5f,
                                            2f);
 }
示例#2
0
        public static GravityOverrideConeSphereBase DrawConeSphereBase(ExtConeSphereBase cone, GravityOverrideConeSphereBase coneGravity, Color color, out bool hasChanged)
        {
            float sizeLine  = cone.LocalScale.magnitude / 20;
            float sizePoint = cone.LocalScale.magnitude / 15;

            hasChanged = false;
            bool changed = hasChanged;

            coneGravity.Base = ExtGravityOverrideEditor.DrawDisc(cone.Base, coneGravity.Base, color, false, out changed);
            hasChanged       = (changed) ? true : hasChanged;

            Color colorLine = new Color(color.r, color.g, color.b, color.a * 0.8f);

            coneGravity.Trunk = ExtGravityOverrideEditor.DrawLineTrunk(coneGravity.Trunk, cone.P1, cone.P2, colorLine, sizeLine, out changed);
            hasChanged        = (changed) ? true : hasChanged;
            coneGravity.Top   = ExtGravityOverrideEditor.DrawPoint(coneGravity.Top, cone.P1, color, sizePoint, out changed);
            hasChanged        = (changed) ? true : hasChanged;


            return(coneGravity);
        }