Interstellar travel calculator

Discussion forum for Celestia developers; topics may only be started by members of the developers group, but anyone can post replies.
Topic author
john71
Posts: 443
Joined: 10.08.2016
With us: 2 years 11 months

Interstellar travel calculator

Post #1by john71 » 28.03.2017, 16:25

I found this nice online javascript program:

http://nathangeffen.webfactional.com/spacetravel/spacetravel.php

Is it possible to integrate something like this into Celestia?

I mean

1.) mark a destination star or planet (automatic distance input)

2.) input spacecraft mass, acceleration, maximum speed, fuel energy conversion rate

3.) output fuel mass and traveling time.

Can it be done?

Avatar
selden
Developer
Posts: 10053
Joined: 04.09.2002
With us: 16 years 10 months
Location: NY, USA

Post #2by selden » 28.03.2017, 22:01

In principle a Lua function could do it, either as a CelX script or invoked by a ScriptedOrbit.
Selden

Topic author
john71
Posts: 443
Joined: 10.08.2016
With us: 2 years 11 months

Post #3by john71 » 30.03.2017, 15:29

Do you know any similar script I can download?

The only slightly similar one I found is "Two Objects Relative Info" CELX. This script displays relative Distance, Latitude and Longitude, as well as speeds: Total, Radial, Transversal and Angular for any 2 objects.
http://www.celestiamotherlode.net/creators/SU(3)xSU(2)xU(1)/2ObjectsRelativeInfov2.zip

Avatar
selden
Developer
Posts: 10053
Joined: 04.09.2002
With us: 16 years 10 months
Location: NY, USA

Post #4by selden » 30.03.2017, 15:39

Here's an external calculator written in javascript. Maybe someone could translate it into Lua.

http://nathangeffen.webfactional.com/spacetravel/spacetravel.php
Selden

Topic author
john71
Posts: 443
Joined: 10.08.2016
With us: 2 years 11 months

Post #5by john71 » 31.03.2017, 13:27

Lol I meant similar CELX script. I want to reverse engineer a slightly similar one, it is quicker than starting from scratch...


Return to “Ideas & News”

Who is online

Users browsing this forum: 1 guest