From da2d752c6eb400ecf4fb87d4661225d9c61d8f2f Mon Sep 17 00:00:00 2001 From: mackierx111 Date: Wed, 11 Dec 2024 10:58:21 +0900 Subject: [PATCH] User input is accepted by Update and input to Vehicle is applied by FixedUpdate. --- Assets/AWSIM/Scripts/Vehicles/VehicleOverrideInputManager.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Assets/AWSIM/Scripts/Vehicles/VehicleOverrideInputManager.cs b/Assets/AWSIM/Scripts/Vehicles/VehicleOverrideInputManager.cs index aef628f2a..4fd2bb70a 100644 --- a/Assets/AWSIM/Scripts/Vehicles/VehicleOverrideInputManager.cs +++ b/Assets/AWSIM/Scripts/Vehicles/VehicleOverrideInputManager.cs @@ -36,7 +36,10 @@ void Update() // Update new input for Autonomous and Manually Inputs. AutonomousInput.OnUpdate(inputArg); ManuallyInput.OnUpdate(inputArg); + } + private void FixedUpdate() + { // If override input is present, switch new ControlMode. if (ManuallyInput.Overridden) {