shmodot/scenes/orbits/Barycenter.tscn

19 lines
739 B
Plaintext

[gd_scene load_steps=3 format=2]
[ext_resource path="res://scripts/orbits/Barycenter.cs" type="Script" id=1]
[ext_resource path="res://scenes/orbits/Planet.tscn" type="PackedScene" id=2]
[node name="Barycenter" type="Spatial"]
script = ExtResource( 1 )
SemiMajorAxis = 7.0
Eccentricity = 0.752
_pointMassPaths = [ NodePath("Planet A"), NodePath("Planet B") ]
_speed = 1.0
[node name="Planet A" parent="." instance=ExtResource( 2 )]
transform = Transform( 0.999977, 0.00603502, 0.00319089, -0.00604282, 0.999979, 0.0024369, -0.00317609, -0.00245615, 0.999992, -2.55711, 0, -4.25519 )
[node name="Planet B" parent="." instance=ExtResource( 2 )]
transform = Transform( 0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, -11.9998, 0, 1.25565 )
Mass = 0.125