CG-57.ac
0.0
0.0
-1.5
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
0.0
0
segments
0
0
0
0
0.5
0
-10.0
1.65
0
-20.0
3.9
0
90
90
90
90
/environment/CG-57/spd-kt
0.5144
2
/environment/CG-57/spd-kt
90
bowwake-port
Models/Effects/Wakes/wake.xml
-45.0
0
0.0
0
segments
0
0
0
0
-0.5
0
-10.0
-1.65
0
-20.0
-3.9
0
-90
-90
90
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
rotate
Bow-Wave
Wake
Stern-Wake
wave-motion/damped-pitch-deg
-1
46.3938
0.0
4.13756
0
1
0
translate
Bow-Wave
Wake
Stern-Wake
position/altitude-ft
-0.3048
46.3938
0.0
4.2
0
0
1
rotate
orientation/pitch-deg
-1
0
1
0
rotate
wave-motion/damped-pitch-deg
1
46.3938
0.0
4.13756
0
1
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
/Effects/model-transparent
net
SPS-49-net-tranparent
range
0
15000
range
railing
1000
range
1000m
0
1000