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

Bugfix orbit model rotation of orbit

parent 761012cd
No related branches found
No related tags found
No related merge requests found
......@@ -206,7 +206,7 @@ function createOrbit(){
ellipseGeometry.computeTangents();
orbit = new THREE.Line(ellipseGeometry, material);
// Argument of the perigee
orbit.rotation.z = value_orbit_w+Math.PI/2;
orbit.rotation.z = value_orbit_w+Math.PI/2+value_orbit_raan;
//Inclination
var nodeA = new THREE.Vector3(Math.cos(value_orbit_raan),Math.sin(value_orbit_raan),0);
var quat = new THREE.Quaternion();
......
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