51 lines
74 KiB
Plaintext
51 lines
74 KiB
Plaintext
|
[gd_scene load_steps=7 format=2]
|
||
|
|
||
|
[ext_resource path="res://Player.gd" type="Script" id=1]
|
||
|
[ext_resource path="res://Planets.gd" type="Script" id=2]
|
||
|
|
||
|
[sub_resource type="SphereMesh" id=1]
|
||
|
radius = 20.0
|
||
|
height = 40.0
|
||
|
|
||
|
[sub_resource type="ConvexPolygonShape" id=2]
|
||
|
points = PoolVector3Array( 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 20, 0, 0, 19.9094, 1.90112, 0.186342, 19.9094, 1.89197, 0.37089, 19.9094, 1.86459, 0.551866, 19.9094, 1.81926, 0.727527, 19.9094, 1.75641, 0.896182, 19.9094, 1.67664, 1.05621, 19.9094, 1.58072, 1.20606, 19.9094, 1.46959, 1.3443, 19.9094, 1.3443, 1.46959, 19.9094, 1.20606, 1.58072, 19.9094, 1.05621, 1.67664, 19.9094, 0.896182, 1.75641, 19.9094, 0.727527, 1.81926, 19.9094, 0.551866, 1.86459, 19.9094, 0.37089, 1.89197, 19.9094, 0.186342, 1.90112, 19.9094, 1.1641e-16, 1.89197, 19.9094, -0.186342, 1.86459, 19.9094, -0.37089, 1.81926, 19.9094, -0.551866, 1.75641, 19.9094, -0.727527, 1.67664, 19.9094, -0.896182, 1.58072, 19.9094, -1.05621, 1.46959, 19.9094, -1.20606, 1.3443, 19.9094, -1.3443, 1.20606, 19.9094, -1.46959, 1.05621, 19.9094, -1.58072, 0.896182, 19.9094, -1.67664, 0.727527, 19.9094, -1.75641, 0.551866, 19.9094, -1.81926, 0.37089, 19.9094, -1.86459, 0.186342, 19.9094, -1.89197, 2.3282e-16, 19.9094, -1.90112, -0.186342, 19.9094, -1.89197, -0.37089, 19.9094, -1.86459, -0.551866, 19.9094, -1.81926, -0.727527, 19.9094, -1.75641, -0.896182, 19.9094, -1.67664, -1.05621, 19.9094, -1.58072, -1.20606, 19.9094, -1.46959, -1.3443, 19.9094, -1.3443, -1.46959, 19.9094, -1.20606, -1.58072, 19.9094, -1.05621, -1.67664, 19.9094, -0.896182, -1.75641, 19.9094, -0.727527, -1.81926, 19.9094, -0.551866, -1.86459, 19.9094, -0.37089, -1.89197, 19.9094, -0.186342, -1.90112, 19.9094, -3.4923e-16, -1.89197, 19.9094, 0.186342, -1.86459, 19.9094, 0.37089, -1.81926, 19.9094, 0.551866, -1.75641, 19.9094, 0.727527, -1.67664, 19.9094, 0.896182, -1.58072, 19.9094, 1.05621, -1.46959, 19.9094, 1.20606, -1.3443, 19.9094, 1.3443, -1.20606, 19.9094, 1.46959, -1.05621, 19.9094, 1.58072, -0.896182, 19.9094, 1.67664, -0.727527, 19.9094, 1.75641, -0.551866, 19.9094, 1.81926, -0.37089, 19.9094, 1.86459, -0.186342, 19.9094, 1.89197, -4.6564e-16, 19.9094, 1.90112, 0, 19.6386, 3.78502, 0.370997, 19.6386, 3.7668, 0.738422, 19.6386, 3.7123, 1.09873, 19.6386, 3.62204, 1.44847, 19.6386, 3.49691, 1.78425, 19.6386, 3.33809, 2.10285, 19.6386, 3.14713, 2.40119, 19.6386, 2.92586, 2.67642, 19.6386, 2.67642, 2.92586, 19.6386, 2.40119, 3.14713, 19.6386, 2.10285, 3.33809, 19.6386, 1.78425, 3.49691, 19.6386, 1.44847, 3.62204, 19.6386, 1.09873, 3.7123, 19.6386, 0.738422, 3.7668, 19.6386, 0.370997, 3.78502, 19.6386, 2.31766e-16, 3.7668, 19.6386, -0.370997, 3.7123, 19.6386, -0.738422, 3.62204, 19.6386, -1.09873, 3.49691, 19.6386, -1.44847, 3.33809, 19.6386, -1.78425, 3.14713, 19.6386, -2.10285, 2.92586, 19.6386, -2.40119, 2.67642, 19.6386, -2.67642, 2.40119, 19.6386, -2.92586, 2.10285, 19.6386, -3.14713, 1.78425, 19.6386, -3.33809, 1.44847, 19.6386, -3.49691, 1.09873, 19.6386, -3.62204, 0.738422, 19.6386, -3.7123, 0.370997, 19.6386, -3.7668, 4.63532e-16, 19.6386, -3.78502, -0.370997, 19.6386, -3.7668, -0.738422, 19.6386, -3.7123, -1.09873, 19.6386, -3.62204, -1.44847, 19.6386, -3.49691, -1.78425, 19.6386, -3.33809, -2.10285, 19.6386, -3.14713, -2.40119, 19.6386, -2.92586, -2.67642, 19.6386, -2.67642, -2.92586, 19.6386, -2.40119, -3.14713, 19.6386, -2.10285, -3.33809, 19.6386, -1.78425, -3.49691, 19.6386, -1.44847, -3.62204, 19.6386, -1.09873, -3.7123, 19.6386, -0.738422, -3.7668, 19.6386, -0.370997, -3.78502, 19.6386, -6.95298e-16, -3.7668, 19.6386, 0.370997, -3.7123, 19.6386, 0.738422, -3.62204, 19.6386, 1.09873, -3.49691, 19.6386, 1.44847, -3.33809, 19.6386, 1.78425, -3.14713, 19.6386, 2.10285, -2.92586, 19.6386, 2.401
|
||
|
|
||
|
[sub_resource type="CylinderMesh" id=3]
|
||
|
top_radius = 0.5
|
||
|
bottom_radius = 0.5
|
||
|
|
||
|
[sub_resource type="ConvexPolygonShape" id=4]
|
||
|
points = PoolVector3Array( 0, 1, 0.5, 0.0490086, 1, 0.497592, 0.0975452, 1, 0.490393, 0.145142, 1, 0.47847, 0.191342, 1, 0.46194, 0.235698, 1, 0.440961, 0.277785, 1, 0.415735, 0.317197, 1, 0.386505, 0.353553, 1, 0.353553, 0.386505, 1, 0.317197, 0.415735, 1, 0.277785, 0.440961, 1, 0.235698, 0.46194, 1, 0.191342, 0.47847, 1, 0.145142, 0.490393, 1, 0.0975452, 0.497592, 1, 0.0490086, 0.5, 1, 3.06162e-17, 0.497592, 1, -0.0490086, 0.490393, 1, -0.0975452, 0.47847, 1, -0.145142, 0.46194, 1, -0.191342, 0.440961, 1, -0.235698, 0.415735, 1, -0.277785, 0.386505, 1, -0.317197, 0.353553, 1, -0.353553, 0.317197, 1, -0.386505, 0.277785, 1, -0.415735, 0.235698, 1, -0.440961, 0.191342, 1, -0.46194, 0.145142, 1, -0.47847, 0.0975452, 1, -0.490393, 0.0490086, 1, -0.497592, 6.12323e-17, 1, -0.5, -0.0490086, 1, -0.497592, -0.0975452, 1, -0.490393, -0.145142, 1, -0.47847, -0.191342, 1, -0.46194, -0.235698, 1, -0.440961, -0.277785, 1, -0.415735, -0.317197, 1, -0.386505, -0.353553, 1, -0.353553, -0.386505, 1, -0.317197, -0.415735, 1, -0.277785, -0.440961, 1, -0.235698, -0.46194, 1, -0.191342, -0.47847, 1, -0.145142, -0.490393, 1, -0.0975452, -0.497592, 1, -0.0490086, -0.5, 1, -9.18485e-17, -0.497592, 1, 0.0490086, -0.490393, 1, 0.0975452, -0.47847, 1, 0.145142, -0.46194, 1, 0.191342, -0.440961, 1, 0.235698, -0.415735, 1, 0.277785, -0.386505, 1, 0.317197, -0.353553, 1, 0.353553, -0.317197, 1, 0.386505, -0.277785, 1, 0.415735, -0.235698, 1, 0.440961, -0.191342, 1, 0.46194, -0.145142, 1, 0.47847, -0.0975452, 1, 0.490393, -0.0490086, 1, 0.497592, -1.22465e-16, 1, 0.5, 0, 0.6, 0.5, 0.0490086, 0.6, 0.497592, 0.0975452, 0.6, 0.490393, 0.145142, 0.6, 0.47847, 0.191342, 0.6, 0.46194, 0.235698, 0.6, 0.440961, 0.277785, 0.6, 0.415735, 0.317197, 0.6, 0.386505, 0.353553, 0.6, 0.353553, 0.386505, 0.6, 0.317197, 0.415735, 0.6, 0.277785, 0.440961, 0.6, 0.235698, 0.46194, 0.6, 0.191342, 0.47847, 0.6, 0.145142, 0.490393, 0.6, 0.0975452, 0.497592, 0.6, 0.0490086, 0.5, 0.6, 3.06162e-17, 0.497592, 0.6, -0.0490086, 0.490393, 0.6, -0.0975452, 0.47847, 0.6, -0.145142, 0.46194, 0.6, -0.191342, 0.440961, 0.6, -0.235698, 0.415735, 0.6, -0.277785, 0.386505, 0.6, -0.317197, 0.353553, 0.6, -0.353553, 0.317197, 0.6, -0.386505, 0.277785, 0.6, -0.415735, 0.235698, 0.6, -0.440961, 0.191342, 0.6, -0.46194, 0.145142, 0.6, -0.47847, 0.0975452, 0.6, -0.490393, 0.0490086, 0.6, -0.497592, 6.12323e-17, 0.6, -0.5, -0.0490086, 0.6, -0.497592, -0.0975452, 0.6, -0.490393, -0.145142, 0.6, -0.47847, -0.191342, 0.6, -0.46194, -0.235698, 0.6, -0.440961, -0.277785, 0.6, -0.415735, -0.317197, 0.6, -0.386505, -0.353553, 0.6, -0.353553, -0.386505, 0.6, -0.317197, -0.415735, 0.6, -0.277785, -0.440961, 0.6, -0.235698, -0.46194, 0.6, -0.191342, -0.47847, 0.6, -0.145142, -0.490393, 0.6, -0.0975452, -0.497592, 0.6, -0.0490086, -0.5, 0.6, -9.18485e-17, -0.497592, 0.6, 0.0490086, -0.490393, 0.6, 0.0975452, -0.47847, 0.6, 0.145142, -0.46194, 0.6, 0.191342, -0.440961, 0.6, 0.235698, -0.415735, 0.6, 0.277785, -0.386505, 0.6, 0.317197, -0.353553, 0.6, 0.353553, -0.317197, 0.6, 0.386505, -0.277785, 0.6, 0.415735, -0.235698, 0.6, 0.440961, -0.191342, 0.6, 0.46194, -0.145142, 0.6, 0.47847, -0.0975452, 0.6, 0.490393, -0.0490086, 0.6, 0.497592, -1.22465e-16, 0.6, 0.5, 0, 0.2, 0.5, 0.0490086, 0.2, 0.497592, 0.0975452, 0.2, 0.490393, 0.145142, 0.2, 0.47847, 0.191342, 0.2, 0.46194, 0.235698, 0.2, 0.440961, 0.277785, 0.2, 0.415735, 0.317197, 0.2, 0.386505, 0.353553, 0.2, 0.353553, 0.386505, 0.2, 0.317197, 0.415735, 0.2, 0.277785, 0.440961, 0.2, 0.235698, 0.46194, 0.2, 0.191342, 0.47847, 0.2, 0.145142, 0.490393, 0.2, 0.0975452, 0.497592, 0.2, 0.0490086, 0.5, 0.2, 3.06162e-17, 0.497592, 0.2, -0.0490086, 0.490393, 0.2, -0.0975452, 0.47847, 0.2, -0.145142, 0.46194, 0.2, -0.191342, 0.440961, 0.2, -0.235698, 0.415735, 0.2, -0.277785, 0.386505, 0.2, -0.317197, 0.353553, 0.2, -0.353553, 0.317197, 0.2, -0.386505, 0.277785, 0.2, -0.415735, 0.235698, 0.2, -0.440961, 0.191342, 0.2, -0.46194, 0.145142, 0.2, -0.47847, 0.0975452, 0.2, -0.490393, 0.0490086, 0.2, -0.497592, 6.12323e-17, 0.2, -0.5, -0.0490086, 0.2, -0.497592, -0.0975
|
||
|
|
||
|
[node name="World" type="Spatial"]
|
||
|
|
||
|
[node name="Planets" type="Spatial" parent="."]
|
||
|
script = ExtResource( 2 )
|
||
|
|
||
|
[node name="Earth" type="StaticBody" parent="Planets"]
|
||
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -19, 0 )
|
||
|
|
||
|
[node name="MeshInstance" type="MeshInstance" parent="Planets/Earth"]
|
||
|
mesh = SubResource( 1 )
|
||
|
material/0 = null
|
||
|
|
||
|
[node name="CollisionShape" type="CollisionShape" parent="Planets/Earth"]
|
||
|
shape = SubResource( 2 )
|
||
|
|
||
|
[node name="Player" type="KinematicBody" parent="."]
|
||
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, 0 )
|
||
|
script = ExtResource( 1 )
|
||
|
solar_system = NodePath("../Planets")
|
||
|
|
||
|
[node name="MeshInstance" type="MeshInstance" parent="Player"]
|
||
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 )
|
||
|
mesh = SubResource( 3 )
|
||
|
material/0 = null
|
||
|
|
||
|
[node name="CollisionShape" type="CollisionShape" parent="Player"]
|
||
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 )
|
||
|
shape = SubResource( 4 )
|
||
|
|
||
|
[node name="Camera" type="Camera" parent="Player"]
|
||
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4, 11 )
|