LitDev.LDPhysics.SetTireProperties C# (CSharp) Method

SetTireProperties() public static method

Set 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 stearing more quickly) BrakeStraighten (higher value restores stearing more quickly while braking)
public static SetTireProperties ( Primitive shapeName, Primitive properties ) : void
shapeName Primitive The tire shape.
properties Primitive An array of one or more properties to set. /// The index is one of the properties (case sensitive) and the value is the property value.
return void
        public static void SetTireProperties(Primitive shapeName, Primitive properties)
        {
            try
            {
                Dictionary<string, float> _propeties = new Dictionary<string, float>();
                Primitive indices = SBArray.GetAllIndices(properties);
                for (int i = 1; i <= SBArray.GetItemCount(indices); i++ )
                {
                    _propeties[indices[i]] = properties[indices[i]];
                }
                _Engine.setTireProperties(shapeName, _propeties);
            }
            catch (Exception ex)
            {
                Utilities.OnError(Utilities.GetCurrentMethod(), ex);
            }
        }