LitDev.LDPhysics.GetTireProperties C# (CSharp) Method

GetTireProperties() public static method

Get tire properties, they include: AntiSkid (higher value reduces skid) Drag (higher value increases forward/backward drag) Brake (higher value increases braking power) Straighten (higher value restores steering more quickly) BrakeStraighten (higher value restores steering more quickly while braking)
public static GetTireProperties ( Primitive shapeName ) : Primitive
shapeName Primitive The tire shape.
return Primitive
        public static Primitive GetTireProperties(Primitive shapeName)
        {
            try
            {
                Dictionary<string, float> propeties = _Engine.getTireProperties(shapeName);
                string result = "";
                if (null != propeties)
                {
                    foreach(KeyValuePair<string, float> property in propeties)
                    {
                        result += Utilities.ArrayParse(property.Key) + "=" + property.Value.ToString(CultureInfo.InvariantCulture) + ";";
                    }
                }
                return Utilities.CreateArrayMap(result);
            }
            catch (Exception ex)
            {
                Utilities.OnError(Utilities.GetCurrentMethod(), ex);
                return "";
            }
        }