Skip to content
Snippets Groups Projects
Commit 59e833fa authored by Xavier Gibert's avatar Xavier Gibert
Browse files

before changing rotation of inclination planes to try to fix loop(-x) bug

parent 2e1d4c96
No related branches found
No related tags found
No related merge requests found
......@@ -94,7 +94,6 @@ function update()
if(show_inclination){
//Compute instant inclination angle
var inclination = Math.asin(value_earth.z/value_earth.length());
updateInclinationArc(inclination);
updateInclinationSprite(inclination);
......@@ -265,13 +264,10 @@ function updateInclinationArc(inclination){
scene.remove(incl_arc);
incl_arc = new THREE.Mesh( new THREE.TorusGeometry( arc_radius, arc_tube, arc_seg_r, arc_seg_t, inclination ), mat_arc );
//incl_arc.position.set( 0, 0, 0 );
var incl_inst_rot = new THREE.Quaternion().setFromUnitVectors( axis_x, value_earth.clone().normalize() );
incl_arc.quaternion.copy(incl_inst_rot.multiply(incl_offset));
//incl_arc.matrixWorldNeedsUpdate = true;
//incl_arc.updateMatrix();
scene.add(incl_arc);
}
......@@ -176,6 +176,7 @@ public class Installer {
mission.initial_orbit.a=4.2164E7;
mission.initial_orbit.e=0.0;
mission.initial_orbit.i=0.4;
mission.initial_orbit.raan=Math.PI/2;
values = new ContentValues();
values.put(MissionEntry.COLUMN_NAME_NAME, mission.name);
......
......@@ -33,7 +33,7 @@ public class Orbit implements Serializable{
/**
* Right ascension of ascending node
*/
public double raan = Math.toRadians(261);
public double raan = Math.toRadians(0);
/**
* Mean anomaly
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment