YACC YACC
YACC YACC
Made with ❤️ for Unity

Search Results for

    Field clutch

    Sets the attached clutch, this comes usually from your gearbox and should match it's value.

    Namespace: YACC
    Assembly: .dll
    Syntax
    public float clutch
    Returns
    Type Description
    float
    Examples

    If your gearbox is in neutral, the clutch should be 0. If your gearbox is in gear, the clutch should be 1. If you're using a GearBox instance you can fetch the value from the clutch property.

    using YACC;
    
    public class MyCarEngineController : MonoBehaviour {
        GearBox gearBox = new GearBox();
        Engine engine = new Engine();
    
        void Update() {
            engine.clutch = gearBox.clutch;
        }
    }
    © Deimos Industries Ltd. All rights reserved.