CG57.ac print("LOAD CG-57", cmdarg().getPath()); var fg_root = getprop("/sim/fg-root"); var self = cmdarg(); ######## # properties used to calculate rel wind for the bow-wave shader var speed_Node = self.getNode("velocities/speed-kts", 1); var hdg_Node = self.getNode("orientation/true-heading-deg", 1); var wind_speed_Node = self.getNode("environment/rel-wind-speed-kts", 1); wind_speed_Node.setDoubleValue(0); ######## # the main loop var update = func { var value = wind_speed_Node.getValue(); setprop("/environment/CG-57/rel-wind-speed-kts", value); value = speed_Node.getValue(); setprop("/environment/CG-57/spd-kt", value); value = hdg_Node.getValue(); setprop("/environment/CG-57/hdg-deg", value); settimer(update,0); } ######## #start the main loop update(); #print("UNLOAD CG-57 ", cmdarg().getPath()); Ensign Models/Maritime/Military/CG-57/ensign.xml 32.7427 0.0 26.6797 Bow-Wave Models/Maritime/Military/CG-57/bow_wave.xml 25 -0.001 bowwake-stbd /Models/Effects/Wakes/wake.xml -45.0 0 1.0 0 segments 0 0 0 0 0.5 0 -10.0 1.65 0 -20.0 3.9 0 /environment/CG-57/spd-kt 0.5144 2 /environment/CG-57/spd-kt 90 bowwake-port Models/Effects/Wakes/wake.xml -45.0 0 1.0 0 segments 0 0 0 0 -0.5 0 -10.0 -1.65 0 -20.0 -3.9 0 -80 -100 88 90 /environment/CG-57/spd-kt 0.5144 2 /environment/CG-57/spd-kt 90 Stern-Wake Models/Effects/Wakes/wake2.xml 105 0 2.0 0 segments 0 -4 -2 0 -3.5 -1 0 0 0 0 3.5 -1 0 4 -2 -80 -100 88 90 /environment/CG-57/spd-kt 1.0 5 90 rotate Wake Bow-Wave Stern-Wake orientation/roll-deg 1
105.814 0.00 1.5
1 0 0
Bow-Wave scale /environment/CG-57/spd-kt 0.04 0.0 0.0 0.2 0.6 1.0 0.4 1.2
-55.0 0.0 0.0
select Wake /sim/rendering/particles rotate radar-1b /sim/time/elapsed-sec 65
-11.7369 0.0 20.53
0 0 1
rotate SPS-49-Antenna /sim/time/elapsed-sec 50
29.6884 0 27.6858
0 0 1
range 0 15000 range railing 1000 range 1000m 0 1000