YACC YACC
YACC YACC
Made with ❤️ for Unity

Search Results for

    Method CalculateOptimalGearShifts

    CalculateOptimalGearShifts(Engine, GearBox, Wheels, GameObject)

    Calculate the optimal gear shifts for a given engine, gearbox and wheels.

    Declaration
    public static void CalculateOptimalGearShifts(Engine engine, GearBox gearBox, Wheels wheels, GameObject gameObject = null)
    Parameters
    Type Name Description
    Engine engine
    GearBox gearBox
    Wheels wheels
    GameObject gameObject
    Remarks

    The YACC.Utils namespace is used to provide a set of helper methods, the class needs to be statically called and it's not meant to be instantiated.

    Examples
    using YACC;
    public class Car : MonoBehaviour {
        Engine engine = new Engine();
        GearBox gearBox = new GearBox();
        Wheels wheels = new Wheels();
    
        void Start() {
            Utils.CalculateOptimalGearShifts(engine, gearBox, wheels, this.gameObject);
        }
    }
    © Deimos Industries Ltd. All rights reserved.