From 1237b5ffd4990656448035645af3f6b8ca7e953b Mon Sep 17 00:00:00 2001 From: Joshua Davidson Date: Sun, 13 Jan 2019 00:48:40 -0500 Subject: [PATCH] GIT: Remove a leftover file --- Nasal/walk.nas | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 Nasal/walk.nas diff --git a/Nasal/walk.nas b/Nasal/walk.nas deleted file mode 100644 index 996a811e..00000000 --- a/Nasal/walk.nas +++ /dev/null @@ -1,18 +0,0 @@ -# Copyright (c) 2019 Joshua Davidson (it0uchpods) - -# view nodes and offsets -------------------------------------------- -var zNoseNode = props.globals.getNode("sim/view/config/y-offset-m", 1); -var xViewNode = props.globals.getNode("sim/current-view/z-offset-m", 1); -var yViewNode = props.globals.getNode("sim/current-view/x-offset-m", 1); -var hViewNode = props.globals.getNode("sim/current-view/heading-offset-deg", 1); - -var walk_about = func(wa_distance) { - var i = getprop("sim/current-view/view-number"); - if (i == view.indexof("Pilot View") or i == view.indexof("Model View") or i == view.indexof("Passenger View (Economy Class)") or i == view.indexof("Passenger View (First Class)") or i == view.indexof("Copilot View")) { - var wa_heading_rad = hViewNode.getValue() * 0.01745329252; - var new_x_position = xViewNode.getValue() - (math.cos(wa_heading_rad) * wa_distance); - var new_y_position = yViewNode.getValue() - (math.sin(wa_heading_rad) * wa_distance); - xViewNode.setValue(new_x_position); - yViewNode.setValue(new_y_position); - } -}