LitDev.LDPhysics.GetTireInformation C# (CSharp) Method

GetTireInformation() public static method

Get tire information, it includes: Skid (if this value exceeds the property AntiSkid, then the tire is skidding) Crash (the value is the speed of the impact)
public static GetTireInformation ( Primitive shapeName ) : Primitive
shapeName Primitive The tire shape.
return Primitive
        public static Primitive GetTireInformation(Primitive shapeName)
        {
            try
            {
                Dictionary<string, float> information = _Engine.getTireInformation(shapeName);
                string result = "";
                if (null != information)
                {
                    foreach (KeyValuePair<string, float> property in information)
                    {
                        result += Utilities.ArrayParse(property.Key) + "=" + property.Value.ToString(CultureInfo.InvariantCulture) + ";";
                    }
                }
                return Utilities.CreateArrayMap(result);
            }
            catch (Exception ex)
            {
                Utilities.OnError(Utilities.GetCurrentMethod(), ex);
                return "";
            }
        }