コード例 #1
0
        public void Copy(OverlapPreventionObject _object)
        {
            if (_object == null)
            {
                return;
            }

            base.Copy(_object);

            OverlapPreventionType = _object.OverlapPreventionType;
            UseAvoiding           = _object.UseAvoiding;
            Size   = _object.Size;
            Center = _object.Center;
            End    = _object.End;
            Radius = _object.Radius;
            OverlapRadiusMaximum         = _object.OverlapRadiusMaximum;
            AvoidSpeedMultiplier         = _object.AvoidSpeedMultiplier;
            AvoidSpeedMultiplierMaximum  = _object.AvoidSpeedMultiplierMaximum;
            EscapeSpeedMultiplier        = _object.EscapeSpeedMultiplier;
            EscapeSpeedMultiplierMaximum = _object.EscapeSpeedMultiplierMaximum;
            AngularSpeed        = _object.AngularSpeed;
            AngularSpeedMaximum = _object.AngularSpeedMaximum;
        }
コード例 #2
0
 public OverlapPreventionObject(OverlapPreventionObject _object)
 {
     Copy(_object);
 }