GIT: Remove a leftover file

This commit is contained in:
Joshua Davidson 2019-01-13 00:48:40 -05:00
parent d29909ea5f
commit 1237b5ffd4

View file

@ -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);
}
}