|
@ -90,8 +90,6 @@ public class Treadmill : MonoBehaviour |
|
|
m_BeltSpeed += Map(m_CurrentForce, 0, 600, 0, 0.01f); |
|
|
m_BeltSpeed += Map(m_CurrentForce, 0, 600, 0, 0.01f); |
|
|
|
|
|
|
|
|
m_Belt.SetFloat("_Speed", -m_BeltSpeed); |
|
|
m_Belt.SetFloat("_Speed", -m_BeltSpeed); |
|
|
|
|
|
|
|
|
Debug.Log($"{m_BeltSpeed} {m_CurrentForce}"); |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private float Map(float s, float a1, float a2, float b1, float b2) |
|
|
private float Map(float s, float a1, float a2, float b1, float b2) |
|
|