Interactive positioning of SSC objects.
Posted: 02.07.2007, 18:10
Celestia v1.5 provides support for ScriptedOrbit and ScriptedRotation functions. Since these functions run in a separate context, they do not (yet?) have access to the keyboard or joystick. However, these functions can determine what object is currently selected.
If one defines appropriate DSC objects, one can use them to communicate with ScriptedOrbits and thus cause the object controlled by that script to move arbitrarily.
A very simple and crude example of such control is available in
http://www.lepp.cornell.edu/~seb/celest ... ontrol.zip
It's about 1MB since I left in the files used to develop the rather simple spacecraft model that it uses.
Here's an example of a split-screen control:
The upper pane is the object being controlled, positioned above the reference object located where it started.
The lower half shows the three DSC objects one selects to move it: Fwd, Stop & Rev. One can also watch the object in a full-screen window and select the objects by typing their names.
Expanding on this to provide full 3D control of an object is left as an exercise for the student.
If one defines appropriate DSC objects, one can use them to communicate with ScriptedOrbits and thus cause the object controlled by that script to move arbitrarily.
A very simple and crude example of such control is available in
http://www.lepp.cornell.edu/~seb/celest ... ontrol.zip
It's about 1MB since I left in the files used to develop the rather simple spacecraft model that it uses.
Here's an example of a split-screen control:
The upper pane is the object being controlled, positioned above the reference object located where it started.
The lower half shows the three DSC objects one selects to move it: Fwd, Stop & Rev. One can also watch the object in a full-screen window and select the objects by typing their names.
Expanding on this to provide full 3D control of an object is left as an exercise for the student.