Modified simulation scripting example to use JavaScript for both listeners.
Modified simulation extension example to tell users where to look for the code for the extensions
This commit is contained in:
parent
baf5879093
commit
ee8fe7f089
@ -35,7 +35,7 @@ public class AirStart extends AbstractSimulationExtension {
|
||||
}
|
||||
|
||||
public double getLaunchAltitude() {
|
||||
return config.getDouble("launchAltitude", 0.0);
|
||||
return config.getDouble("launchAltitude", 100.0);
|
||||
}
|
||||
|
||||
public void setLaunchAltitude(double launchAltitude) {
|
||||
@ -44,7 +44,7 @@ public class AirStart extends AbstractSimulationExtension {
|
||||
}
|
||||
|
||||
public double getLaunchVelocity() {
|
||||
return config.getDouble("launchVelocity", 0.0);
|
||||
return config.getDouble("launchVelocity", 50.0);
|
||||
}
|
||||
|
||||
public void setLaunchVelocity(double launchVelocity) {
|
||||
|
Binary file not shown.
Binary file not shown.
@ -46,7 +46,7 @@ public final class ExampleDesignFileAction extends JMenu {
|
||||
// Examples demonstrating customized functionality
|
||||
"Presets",
|
||||
"Simulation extensions",
|
||||
"Simulation extensions and scripting"
|
||||
"Simulation scripting"
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user