コード例 #1
0
    // Update is called once per frame
    void Update()
    {
        if (main.wheel.standard)
        {
            #region "Wheels"
            set_wheel(RR, RR_wheel, m_rr, false, false);
            set_wheel(RL, RL_wheel, m_rl, true, false);
            set_wheel(FR, FR_wheel, m_fr, false, true);
            set_wheel(FL, FL_wheel, m_fl, true, true);
            #endregion
        }
        else
        {
            set_mid_wheels();
        }

        PSL.Emit((int)(4.2f * m.slip)); PSR.Emit((int)(4.2f * m.slip));
    }