user input del & pose camera fixed

This commit is contained in:
2024-04-30 14:03:42 +01:00
parent fef5072ec2
commit f6645aa96a
8 changed files with 5259 additions and 125 deletions

View File

@@ -27,6 +27,7 @@ public class InputController : MonoBehaviour
public Vector3 HorizontalDirection; // Normalized vector in direction of travel (assume right angle to floor)
public bool UseHumanInput = true;
public bool DemoMockIfNoInput = true; // Demo mock mode if no human input
public bool m_IsTraining = false;
float _delayUntilNextAction;
float _timeUnillDemo;
@@ -39,7 +40,8 @@ public class InputController : MonoBehaviour
// Start is called before the first frame update
void Awake()
{
UseHumanInput = !Academy.Instance.IsCommunicatorOn;
if(m_IsTraining)
UseHumanInput = !Academy.Instance.IsCommunicatorOn;
_timeUnillDemo = 1f;
}
@@ -169,7 +171,7 @@ public class InputController : MonoBehaviour
// keep power above deadzone as we handle that below
power = kDeadzone + (power * (1f-kDeadzone));
// 2 in 5 times we are going to stand still
if (UnityEngine.Random.value < .4f)
if (UnityEngine.Random.value < .5f)
power = 0.001f;
// float direction = UnityEngine.Random.Range(-Mathf.PI/8, Mathf.PI/8);
// float power = UnityEngine.Random.Range(1f, 1f);