-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMain.tscn
132 lines (101 loc) · 3.94 KB
/
Main.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
[gd_scene load_steps=19 format=2]
[ext_resource path="res://Main.tres" type="Environment" id=1]
[ext_resource path="res://scr/Gravity.gd" type="Script" id=2]
[ext_resource path="res://Player.tscn" type="PackedScene" id=3]
[ext_resource path="res://scr/Main.gd" type="Script" id=4]
[ext_resource path="res://textures/Moon.jpg" type="Texture" id=5]
[ext_resource path="res://textures/EmmissionSun.jpg" type="Texture" id=7]
[sub_resource type="SphereMesh" id=1]
radius = 65.0
height = 130.0
[sub_resource type="SpatialMaterial" id=2]
albedo_texture = ExtResource( 7 )
emission_enabled = true
emission = Color( 0.909804, 0.333333, 0.219608, 1 )
emission_energy = 1.25
emission_operator = 0
emission_on_uv2 = false
emission_texture = ExtResource( 7 )
[sub_resource type="SphereShape" id=3]
radius = 65.0
[sub_resource type="SphereMesh" id=4]
radius = 10.0
height = 20.0
[sub_resource type="SpatialMaterial" id=5]
albedo_color = Color( 0.662745, 0.890196, 0.592157, 1 )
[sub_resource type="SphereShape" id=6]
radius = 10.0
[sub_resource type="SphereMesh" id=7]
radius = 20.0
height = 40.0
[sub_resource type="SpatialMaterial" id=8]
albedo_color = Color( 0.760784, 0.501961, 0.905882, 1 )
depth_enabled = true
depth_scale = 8.31
depth_deep_parallax = false
depth_flip_tangent = false
depth_flip_binormal = false
[sub_resource type="SphereShape" id=9]
radius = 20.0
[sub_resource type="SphereMesh" id=10]
radius = 3.0
height = 6.0
[sub_resource type="SpatialMaterial" id=11]
albedo_texture = ExtResource( 5 )
[sub_resource type="SphereShape" id=12]
radius = 3.0
[node name="Main" type="Spatial"]
script = ExtResource( 4 )
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = ExtResource( 1 )
[node name="Gravity Objects" type="Spatial" parent="."]
[node name="Player" parent="Gravity Objects" instance=ExtResource( 3 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 10, 256 )
mass = 2
velocity = Vector3( 32, 0, 0 )
[node name="Sun" type="KinematicBody" parent="Gravity Objects"]
script = ExtResource( 2 )
velocity = Vector3( 0, 0, 0 )
initialRotation = Vector3( 0, -0.125, 0 )
[node name="MeshInstance" type="MeshInstance" parent="Gravity Objects/Sun"]
mesh = SubResource( 1 )
material/0 = SubResource( 2 )
[node name="CollisionShape" type="CollisionShape" parent="Gravity Objects/Sun"]
shape = SubResource( 3 )
[node name="OmniLight" type="OmniLight" parent="Gravity Objects/Sun"]
omni_range = 4096.0
[node name="Green Planet" type="KinematicBody" parent="Gravity Objects"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 256 )
script = ExtResource( 2 )
mass = 7000
velocity = Vector3( 32, 0, 0 )
initialRotation = Vector3( 0, 0.01, 0 )
[node name="MeshInstance" type="MeshInstance" parent="Gravity Objects/Green Planet"]
mesh = SubResource( 4 )
material/0 = SubResource( 5 )
[node name="CollisionShape" type="CollisionShape" parent="Gravity Objects/Green Planet"]
shape = SubResource( 6 )
[node name="Purpule" type="KinematicBody" parent="Gravity Objects"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -511, 0, 0 )
script = ExtResource( 2 )
mass = 14000
velocity = Vector3( 0, 0, 64 )
[node name="MeshInstance" type="MeshInstance" parent="Gravity Objects/Purpule"]
mesh = SubResource( 7 )
material/0 = SubResource( 8 )
[node name="CollisionShape" type="CollisionShape" parent="Gravity Objects/Purpule"]
shape = SubResource( 9 )
[node name="Green Planet Moon" type="KinematicBody" parent="Gravity Objects"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 272 )
script = ExtResource( 2 )
mass = 20
velocity = Vector3( 24, 0, -2 )
[node name="MeshInstance" type="MeshInstance" parent="Gravity Objects/Green Planet Moon"]
mesh = SubResource( 10 )
material/0 = SubResource( 11 )
[node name="CollisionShape" type="CollisionShape" parent="Gravity Objects/Green Planet Moon"]
shape = SubResource( 12 )
[node name="Camera" type="Camera" parent="."]
transform = Transform( 1, 0, 0, 0, -1.62921e-07, 1, 0, -1, -1.62921e-07, 0, 222, 0 )
visible = false
far = 1024.0