YACC YACC
YACC YACC
Made with ❤️ for Unity

Search Results for

    Method ConnectParts

    ConnectParts(GearBox, Wheels)

    Connects the engine to a gearbox and wheels, this is used to calculate the torque output of the engine and other various parameters.

    Declaration
    public void ConnectParts(GearBox gearBox, Wheels wheels)
    Parameters
    Type Name Description
    GearBox gearBox
    Wheels wheels
    Examples
    using YACC;
    public class MyCustomCar : MonoBehaviour {
      private Engine myEngine = new Engine();
      private Engine myWheels = new Wheels();
      private Engine myGearbox = new Engine();
    
      void Start() {
        // Setup all the parts code
        myEngine.ConnectParts(myGearbox, myWheels);
      }
    }
    © Deimos Industries Ltd. All rights reserved.