From 91bc0573ba0429dd82671457f1f19473a9e40f2f Mon Sep 17 00:00:00 2001 From: Marsdolphin <60767981+Marsdolphin@users.noreply.github.com> Date: Wed, 19 Feb 2020 20:47:11 +0800 Subject: [PATCH] Add Brake and Accelerator pedal motion --- Models/followmeEV.xml | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/Models/followmeEV.xml b/Models/followmeEV.xml index 7f5e1e7..e2c49ca 100644 --- a/Models/followmeEV.xml +++ b/Models/followmeEV.xml @@ -965,5 +965,28 @@ <pitch-deg>-87</pitch-deg> </offsets> </model> - +<!-- Accelerator --> +<animation> + <type>translate</type> + <object-name>accelerator</object-name> + <property>/controls/engines/engine/throttle</property> + <factor> 0.05 </factor> + <axis> + <x> -1 </x> + <y> 0 </y> + <z> 0 </z> + </axis> +</animation> +<!-- Brake pedal --> +<animation> + <type>translate</type> + <object-name>brake</object-name> + <property>/controls/gear/brake-left</property> + <factor> 0.03 </factor> + <axis> + <x> -1 </x> + <y> 0 </y> + <z> 0 </z> + </axis> +</animation> </PropertyList>