예제 #1
0
		protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container)
		{
			YAMLMappingNode node = base.ExportYAMLRoot(container);
			node.Add(CenterName, Center.ExportYAML(container));
			node.Add(RadiusName, Radius);
			node.Add(SuspensionSpringName, SuspensionSpring.ExportYAML(container));
			node.Add(SuspensionDistanceName, SuspensionDistance);
			node.Add(ForceAppPointDistanceName, ForceAppPointDistance);
			node.Add(MassName, Mass);
			node.Add(WheelDampingRateName, WheelDampingRate);
			node.Add(ForwardFrictionName, ForwardFriction.ExportYAML(container));
			node.Add(SidewaysFrictionName, SidewaysFriction.ExportYAML(container));
			node.Add(EnabledName, Enabled);
			return node;
		}
예제 #2
0
        protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container)
        {
            YAMLMappingNode node = base.ExportYAMLRoot(container);

            node.Add("m_Center", Center.ExportYAML(container));
            node.Add("m_Radius", Radius);
            node.Add("m_SuspensionSpring", SuspensionSpring.ExportYAML(container));
            node.Add("m_SuspensionDistance", SuspensionDistance);
            node.Add("m_ForceAppPointDistance", ForceAppPointDistance);
            node.Add("m_Mass", Mass);
            node.Add("m_WheelDampingRate", WheelDampingRate);
            node.Add("m_ForwardFriction", ForwardFriction.ExportYAML(container));
            node.Add("m_SidewaysFriction", SidewaysFriction.ExportYAML(container));
            node.Add("m_Enabled", Enabled);
            return(node);
        }