locating objects in space
Posted: Mon Feb 22, 2010 12:33 pm
I have located 32 objects (per galaxy) in space, in the vicinity of 32 stars. In the case of galaxy 4 stars may go nova, and when they do they move to a different position = where the planet used to be but further away (by about an order of magnitude it seems).
In defining an object I am adding, its co-ordinates for position are mentioned, as are the parameters for "orientation" - the latter appearing to be a group of quarternions (?).
Here is an example of code for one such object:
For this commander Gebiisso has gone nova and changed position.
In that case, cue: 2nd object.
Here is an example of code for the 2nd object:
QUESTION 1 - I have looked at the script for the Nova Mission but can't see any reference to how stellar positions are varied. Neither can I find anything about positioning planets; planetinfo.plist (in the main game folder) seems to be about something else. When the nova-star moves (after the nova mission) I assume that one (ex-planet) co-ordinate is altered, which moves the star further away than the planet used to be, but that moves it along the other co-ordinates a bit, too (unless all 3 are changed) .. .. so the question is Can I find out what the NovaStar/Planet co-ordinates for position are?
QUESTION 2 - As the above sounds likely to be rather involved, and since I've already positioned everything anyway, is there something I can add to the code so that (in the above example) .. ..
Before Gebiisso goes nova KBO 1 is used, but
After Gebiisso goes nova KBO 2 is used instead?
..and if all this is too messy due to the mission being part of the core game, as I suspect will be the case, then I'll just have 2 KBO's in galaxy 4, I suppose c'est la vie
cheers (any suggestions/comments welcomed)
P.S. here is the code adding (in this case) both of the above objects:
In defining an object I am adding, its co-ordinates for position are mentioned, as are the parameters for "orientation" - the latter appearing to be a group of quarternions (?).
Here is an example of code for one such object:
Code: Select all
{
"gebiisso1_kbo" = {
position = "1755331 -6950000 2499850";
radius = 597;
orientation = "0.02 0.1 0.014 0";
texture = "gebiisso1_kbo.png";
"rotational_velocity" = -0.215;
};
In that case, cue: 2nd object.
Here is an example of code for the 2nd object:
Code: Select all
"gebiisso2_kbo" = {
position = "95000 -195000 -5100000";
radius = 125;
orientation = "0.5 0.5 0.5 0.5";
texture = "gebiisso2_kbo.png";
"rotational_velocity" = 0.45;
};
QUESTION 2 - As the above sounds likely to be rather involved, and since I've already positioned everything anyway, is there something I can add to the code so that (in the above example) .. ..
Before Gebiisso goes nova KBO 1 is used, but
After Gebiisso goes nova KBO 2 is used instead?
..and if all this is too messy due to the mission being part of the core game, as I suspect will be the case, then I'll just have 2 KBO's in galaxy 4, I suppose c'est la vie
cheers (any suggestions/comments welcomed)
P.S. here is the code adding (in this case) both of the above objects:
Code: Select all
"3 141" = {
"script_actions" = (
debugOn,
"addMoon: gebiisso1_kbo",
"addMoon: gebiisso2_kbo",
debugOff
);
};