Ejemplo n.º 1
0
    public void EngineUI_view1_spokeRoller_onRollEnd(TouchRollerEventData ev)
    {
        m_is_spoke_rolling = false;

        m_wheel_nipples_GO[m_current_spoke].transform.localRotation = m_spoke_rolling_initial_nipple_rotation;
        if (ev.value > 0 && m_WheelModel.getSpokeForceKgf(m_current_spoke) > 200.0)
        {
            //overtight
            return;
        }

        m_WheelModel.nippleRotate(m_current_spoke, ev.value);
        m_WheelModel_compute_and_rebuild_mesh();
    }