// Update is called once per frame
 void FixedUpdate()
 {
     wheelVehicle.ApplyHandbreak(Input.GetKey(KeyCode.Space));
     wheelVehicle.ApplySteering(Input.GetAxis("Horizontal"));
     wheelVehicle.ApplyThrottle(Input.GetAxis("Vertical"));
     if (Input.GetKey(KeyCode.Return))
     {
         robotArmAgent.SetTarget(Target);
         robotArmAgent.enabled = true;
     }
 }
Ejemplo n.º 2
0
 private void FixedUpdate()
 {
     wheelVehicle.ApplyThrottle(throttleInput);
     wheelVehicle.ApplySteering(steeringInput);
     wheelVehicle.ApplyHandbreak(handbrakeInput);
 }