Example #1
0
 public AttachNodeData(AttachNodeData toCopy)
 {
     position = toCopy.position.CopyVector();
     orientation = toCopy.orientation.CopyVector();
     size = toCopy.size;
 }
Example #2
0
 public AttachNodeData getInverse()
 {
     AttachNodeData newData = new AttachNodeData();
     newData.size = size;
     newData.orientation = orientation * -1f;
     newData.position = position;
     newData.position.y *= -1;
     newData.position.x *= -1;
     return newData;
 }
Example #3
0
 public MountModelData(ConfigNode node, bool isNose) : base(node)
 {
     mountDefinition = SSTUEngineMountDefinition.getMountDefinition(name);
     modelName = mountDefinition.modelName;
     height = mountDefinition.height;
     volume = mountDefinition.volume;
     diameter = mountDefinition.defaultDiameter;
     verticalOffset = mountDefinition.verticalOffset;
     invertModel = mountDefinition.invertModel;
     mass = mountDefinition.mountMass;
     nose = isNose;
     if (nose) { invertModel = !invertModel; }
     foreach (AttachNodeData data in mountDefinition.nodePositions)
     {
         AttachNodeData newData = new AttachNodeData(data);
         if (nose) { newData.invert(); }
         nodePositions.Add(newData);
     }
 }