Beispiel #1
0
 private Model3DGroup CreateGeometry(bool isFinal)
 {
     return(ShieldEnergyDesign.CreateGeometry(this.MaterialBrushes, this.SelectionEmissives,
                                              GetTransformForGeometry(isFinal),
                                              WorldColors.ShieldBase_Color, WorldColors.ShieldBase_Specular, WorldColors.ShieldBase_Emissive, WorldColors.ShieldTractor_Color, WorldColors.ShieldTractor_Specular,
                                              isFinal));
 }
Beispiel #2
0
        public override UtilityNewt.IObjectMassBreakdown GetMassBreakdown(double cellSize)
        {
            if (_massBreakdown != null && _massBreakdown.Scale == Scale && _massBreakdown.CellSize == cellSize)
            {
                // This has already been built for this size
                return(_massBreakdown.Breakdown);
            }

            var breakdown = ShieldEnergyDesign.GetMassBreakdown(this.Scale, cellSize);

            // Store this
            _massBreakdown = new MassBreakdownCache(breakdown, Scale, cellSize);

            return(_massBreakdown.Breakdown);
        }
Beispiel #3
0
 public override CollisionHull CreateCollisionHull(WorldBase world)
 {
     return(ShieldEnergyDesign.CreateCollisionHull(world, this.Scale, this.Orientation, this.Position));
 }