private void UpdateUnitSphere() { var losPointSphere = Session.Instance.LosPointSphere; LosScaledCloud.Clear(); UtilsStatic.UnitSphereTranslateScaleList(_unitSpherePoints, ref losPointSphere, ref LosScaledCloud, ShieldComp.DefenseShields.ShieldEnt, false, MyGrid); }
private void UpdateUnitSphere() { var losPointSphere = Session.Instance.LosPointSphere; LosScaledCloud.Clear(); var checkSphere = new BoundingSphereD(ShieldComp.DefenseShields.MyGridCenter, ShieldComp.DefenseShields.DsState.State.GridHalfExtents.Length() + 20); UtilsStatic.UnitSphereTranslateScaleList(_unitSpherePoints, ref losPointSphere, ref LosScaledCloud, ref checkSphere, ShieldComp.DefenseShields.ShieldEnt, false, MyGrid); }
private void UpdateUnitSphere(bool updateShape = false) { if (updateShape) { if (ShieldComp.DefenseShields.GridIsMobile) { ShieldComp.DefenseShields.MobileUpdate(); } } var losPointSphere = Session.Instance.LosPointSphere; LosScaledCloud.Clear(); UtilsStatic.UnitSphereTranslateScaleList(_unitSpherePoints, ref losPointSphere, ref LosScaledCloud, ShieldComp.DefenseShields.ShieldEnt, false, MyGrid); }