phs-galaxy/World.tscn

179 lines
390 KiB
Plaintext
Raw Normal View History

[gd_scene load_steps=18 format=2]
2021-03-25 21:36:04 +01:00
[ext_resource path="res://Player.gd" type="Script" id=1]
[ext_resource path="res://Planets.gd" type="Script" id=2]
[ext_resource path="res://Planet.gd" type="Script" id=3]
2021-04-22 23:40:01 +02:00
[ext_resource path="res://PlanetMaterial.tres" type="Material" id=4]
[ext_resource path="res://MovingPlatform.gd" type="Script" id=5]
2021-03-25 21:36:04 +01:00
[sub_resource type="CubeMesh" id=1]
size = Vector3( 4, 0.5, 4 )
[sub_resource type="ConvexPolygonShape" id=2]
points = PoolVector3Array( -2, 0.25, 2, 2, 0.25, -2, 2, 0.25, 2, -2, 0.25, -2, -2, -0.25, 2, 2, -0.25, -2, 2, -0.25, 2, -2, -0.25, -2, 2, 0.25, 2, -2, 0.25, -2, 2, 0.25, -2, -2, 0.25, 2, 2, -0.25, 2, -2, -0.25, -2, 2, -0.25, -2, -2, -0.25, 2, 2, 0.25, 2, -2, -0.25, 2, -2, 0.25, 2, 2, -0.25, 2, 2, 0.25, -2, -2, -0.25, -2, -2, 0.25, -2, 2, -0.25, -2 )
[sub_resource type="PhysicsMaterial" id=3]
2021-04-22 23:40:01 +02:00
friction = 0.0
[sub_resource type="Shader" id=4]
code = "shader_type spatial;
uniform vec2 scale = vec2(50.0);
uniform bool seamless = false;
2021-04-22 23:40:01 +02:00
uniform vec3 color_scale;
float rand(vec2 coord) {
return fract(sin(dot(coord, vec2(12.9898, 78.233))) * 43758.5453);
}
float perlin_noise(vec2 coord) {
vec2 i = floor(coord);
vec2 f = fract(coord);
float t_l = rand(i) * 6.283;
float t_r = rand(i + vec2(1, 0)) * 6.283;
float b_l = rand(i + vec2(0, 1)) * 6.283;
float b_r = rand(i + vec2(1)) * 6.283;
vec2 t_l_vec = vec2(-sin(t_l), cos(t_l));
vec2 t_r_vec = vec2(-sin(t_r), cos(t_r));
vec2 b_l_vec = vec2(-sin(b_l), cos(b_l));
vec2 b_r_vec = vec2(-sin(b_r), cos(b_r));
float t_l_dot = dot(t_l_vec, f);
float t_r_dot = dot(t_r_vec, f - vec2(1, 0));
float b_l_dot = dot(b_l_vec, f - vec2(0, 1));
float b_r_dot = dot(b_r_vec, f - vec2(1));
vec2 cubic = f * f * (3.0 - 2.0 * f);
float top_mix = mix(t_l_dot, t_r_dot, cubic.x);
float bot_mix = mix(b_l_dot, b_r_dot, cubic.x);
float whole_mix = mix(top_mix, bot_mix, cubic.y);
return whole_mix + 0.5;
}
void fragment() {
vec2 coord = UV * scale;
float value = perlin_noise(coord);
2021-04-22 23:40:01 +02:00
ALBEDO = vec3(value * color_scale);
}"
[sub_resource type="ShaderMaterial" id=5]
2021-04-22 23:40:01 +02:00
resource_local_to_scene = true
shader = SubResource( 4 )
shader_param/scale = Vector2( 50, 50 )
shader_param/seamless = false
2021-04-22 23:40:01 +02:00
shader_param/color_scale = Vector3( 0.3, 0.5, 0.7 )
[sub_resource type="SphereMesh" id=6]
2021-03-25 21:36:04 +01:00
radius = 20.0
height = 40.0
[sub_resource type="ConvexPolygonShape" id=7]
2021-03-25 21:36:04 +01:00
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="SphereMesh" id=8]
2021-04-22 23:40:01 +02:00
radius = 15.0
height = 30.0
[sub_resource type="ConcavePolygonShape" id=9]
2021-04-22 23:40:01 +02:00
data = PoolVector3Array( 0, 15, 0, 0, 15, 0, 0, 14.9321, 1.4258, 0, 15, 0, 0.1398, 14.9321, 1.419, 0, 14.9321, 1.4258, 0, 15, 0, 0, 15, 0, 0.1398, 14.9321, 1.419, 0, 15, 0, 0.2782, 14.9321, 1.3984, 0.1398, 14.9321, 1.419, 0, 15, 0, 0, 15, 0, 0.2782, 14.9321, 1.3984, 0, 15, 0, 0.4139, 14.9321, 1.3644, 0.2782, 14.9321, 1.3984, 0, 15, 0, 0, 15, 0, 0.4139, 14.9321, 1.3644, 0, 15, 0, 0.5456, 14.9321, 1.3173, 0.4139, 14.9321, 1.3644, 0, 15, 0, 0, 15, 0, 0.5456, 14.9321, 1.3173, 0, 15, 0, 0.6721, 14.9321, 1.2575, 0.5456, 14.9321, 1.3173, 0, 15, 0, 0, 15, 0, 0.6721, 14.9321, 1.2575, 0, 15, 0, 0.7922, 14.9321, 1.1855, 0.6721, 14.9321, 1.2575, 0, 15, 0, 0, 15, 0, 0.7922, 14.9321, 1.1855, 0, 15, 0, 0.9045, 14.9321, 1.1022, 0.7922, 14.9321, 1.1855, 0, 15, 0, 0, 15, 0, 0.9045, 14.9321, 1.1022, 0, 15, 0, 1.0082, 14.9321, 1.0082, 0.9045, 14.9321, 1.1022, 0, 15, 0, 0, 15, 0, 1.0082, 14.9321, 1.0082, 0, 15, 0, 1.1022, 14.9321, 0.9045, 1.0082, 14.9321, 1.0082, 0, 15, 0, 0, 15, 0, 1.1022, 14.9321, 0.9045, 0, 15, 0, 1.1855, 14.9321, 0.7922, 1.1022, 14.9321, 0.9045, 0, 15, 0, 0, 15, 0, 1.1855, 14.9321, 0.7922, 0, 15, 0, 1.2575, 14.9321, 0.6721, 1.1855, 14.9321, 0.7922, 0, 15, 0, 0, 15, 0, 1.2575, 14.9321, 0.6721, 0, 15, 0, 1.3173, 14.9321, 0.5456, 1.2575, 14.9321, 0.6721, 0, 15, 0, 0, 15, 0, 1.3173, 14.9321, 0.5456, 0, 15, 0, 1.3644, 14.9321, 0.4139, 1.3173, 14.9321, 0.5456, 0, 15, 0, 0, 15, 0, 1.3644, 14.9321, 0.4139, 0, 15, 0, 1.3984, 14.9321, 0.2782, 1.3644, 14.9321, 0.4139, 0, 15, 0, 0, 15, 0, 1.3984, 14.9321, 0.2782, 0, 15, 0, 1.419, 14.9321, 0.1398, 1.3984, 14.9321, 0.2782, 0, 15, 0, 0, 15, 0, 1.419, 14.9321, 0.1398, 0, 15, 0, 1.4258, 14.9321, 0, 1.419, 14.9321, 0.1398, 0, 15, 0, 0, 15, 0, 1.4258, 14.9321, 0, 0, 15, 0, 1.419, 14.9321, -0.1398, 1.4258, 14.9321, 0, 0, 15, 0, 0, 15, 0, 1.419, 14.9321, -0.1398, 0, 15, 0, 1.3984, 14.9321, -0.2782, 1.419, 14.9321, -0.1398, 0, 15, 0, 0, 15, 0, 1.3984, 14.9321, -0.2782, 0, 15, 0, 1.3644, 14.9321, -0.4139, 1.3984, 14.9321, -0.2782, 0, 15, 0, 0, 15, 0, 1.3644, 14.9321, -0.4139, 0, 15, 0, 1.3173, 14.9321, -0.5456, 1.3644, 14.9321, -0.4139, 0, 15, 0, 0, 15, 0, 1.3173, 14.9321, -0.5456, 0, 15, 0, 1.2575, 14.9321, -0.6721, 1.3173, 14.9321, -0.5456, 0, 15, 0, 0, 15, 0, 1.2575, 14.9321, -0.6721, 0, 15, 0, 1.1855, 14.9321, -0.7922, 1.2575, 14.9321, -0.6721, 0, 15, 0, 0, 15, 0, 1.1855, 14.9321, -0.7922, 0, 15, 0, 1.1022, 14.9321, -0.9045, 1.1855, 14.9321, -0.7922, 0, 15, 0, 0, 15, 0, 1.1022, 14.9321, -0.9045, 0, 15, 0, 1.0082, 14.9321, -1.0082, 1.1022, 14.9321, -0.9045, 0, 15, 0, 0, 15, 0, 1.0082, 14.9321, -1.0082, 0, 15, 0, 0.9045, 14.9321, -1.1022, 1.0082, 14.9321, -1.0082, 0, 15, 0, 0, 15, 0, 0.9045, 14.9321, -1.1022, 0, 15, 0, 0.7922, 14.9321, -1.1855, 0.9045, 14.9321, -1.1022, 0, 15, 0, 0, 15, 0, 0.7922, 14.9321, -1.1855, 0, 15, 0, 0.6721, 14.9321, -1.2575, 0.7922, 14.9321, -1.1855, 0, 15, 0, 0, 15, 0, 0.6721, 14.9321, -1.2575, 0, 15, 0, 0.5456, 14.9321, -1.3173, 0.6721, 14.9321, -1.2575, 0, 15, 0, 0, 15, 0, 0.5456, 14.9321, -1.3173, 0, 15, 0, 0.4139, 14.9321, -1.3644, 0.5456, 14.9321, -1.3173, 0, 15, 0, 0, 15, 0, 0.4139, 14.9321, -1.3644, 0, 15, 0, 0.2782, 14.9321, -1.3984, 0.4139, 14.9321, -1.3644, 0, 15, 0, 0, 15, 0, 0.2782, 14.9321, -1.3984, 0, 15, 0, 0.1398, 14.9321, -1.419, 0.2782, 14.9321, -1.3984, 0, 15, 0, 0, 15, 0, 0.1398, 14.9321, -1.419, 0, 15, 0, 0, 14.9321, -1.4258, 0.1398, 14.9321, -1.419, 0, 15, 0, 0, 15, 0, 0, 14.9321, -1.4258, 0, 15, 0, -0.1398, 14.9321, -1.419, 0, 14.9321, -1.4258, 0, 15, 0, 0, 15, 0, -0.1398, 14.9321, -1.419, 0, 15, 0, -0.2782, 14.9321, -1.3984, -0.1398, 14.9321, -1.419, 0, 15, 0, 0, 15, 0, -0.2782, 14.9321, -1.3984, 0, 15, 0, -0.4139, 14.9321, -1.3644, -0.2782, 14.9321, -1.3984, 0, 15, 0, 0, 15, 0, -0.4139, 14.9321, -1.3644, 0, 15, 0, -0.5456, 14.9321, -1.3173, -0.4139, 14.9321, -1.3644, 0, 15, 0, 0, 15, 0, -0.5456, 14.9321, -1.3173, 0, 15, 0, -0.6721, 14.9321, -1.2575, -0.5456, 14.9321, -1.3173, 0, 15, 0, 0, 15, 0, -0.6721, 14.9321, -1.2575, 0, 15, 0, -0.7922, 14.9321, -1.1855, -0.6721, 14.9321, -1.2575, 0, 15, 0, 0, 15, 0, -0.7922, 14.9321, -1.1855, 0, 15, 0
[sub_resource type="CylinderMesh" id=10]
2021-03-25 21:36:04 +01:00
top_radius = 0.5
bottom_radius = 0.5
[sub_resource type="ConvexPolygonShape" id=11]
2021-03-25 21:36:04 +01:00
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
[sub_resource type="Environment" id=12]
background_mode = 1
background_color = Color( 0.0627451, 0, 0.145098, 1 )
2021-04-22 23:40:01 +02:00
ambient_light_color = Color( 0.152941, 0.105882, 0.247059, 1 )
tonemap_mode = 2
tonemap_exposure = 2.0
tonemap_white = 2.0
glow_enabled = true
glow_intensity = 2.0
glow_bloom = 0.1
2021-03-25 21:36:04 +01:00
[node name="World" type="Spatial"]
[node name="MovingPlatformPivot" type="Position3D" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -20, 0 )
[node name="MovingPlatform" type="KinematicBody" parent="MovingPlatformPivot" groups=[
"MovingPlatform",
]]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 30, 0 )
script = ExtResource( 5 )
solar_system = NodePath("../../Planets")
[node name="MeshInstance" type="MeshInstance" parent="MovingPlatformPivot/MovingPlatform"]
mesh = SubResource( 1 )
material/0 = null
[node name="CollisionShape" type="CollisionShape" parent="MovingPlatformPivot/MovingPlatform"]
shape = SubResource( 2 )
2021-03-25 21:36:04 +01:00
[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, -20, 0 )
physics_material_override = SubResource( 3 )
script = ExtResource( 3 )
mass = 6.0
2021-03-25 21:36:04 +01:00
[node name="MeshInstance" type="MeshInstance" parent="Planets/Earth"]
material_override = SubResource( 5 )
mesh = SubResource( 6 )
2021-03-25 21:36:04 +01:00
material/0 = null
[node name="CollisionShape" type="CollisionShape" parent="Planets/Earth"]
shape = SubResource( 7 )
2021-04-22 23:40:01 +02:00
[node name="StaticBody" type="StaticBody" parent="Planets"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -20, 37, 30 )
script = ExtResource( 3 )
mass = 5.0
[node name="MeshInstance" type="MeshInstance" parent="Planets/StaticBody"]
mesh = SubResource( 8 )
2021-04-22 23:40:01 +02:00
material/0 = ExtResource( 4 )
[node name="CollisionShape" type="CollisionShape" parent="Planets/StaticBody"]
shape = SubResource( 9 )
2021-03-25 21:36:04 +01:00
[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( 10 )
2021-03-25 21:36:04 +01:00
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( 11 )
2021-03-25 21:36:04 +01:00
[node name="Camera" type="Camera" parent="Player"]
transform = Transform( 1, 0, 0, 0, 0.5, 0.866026, 0, -0.866026, 0.5, 0, 14, 20 )
2021-04-22 23:40:01 +02:00
fov = 75.0
far = 500.0
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource( 12 )
[node name="DirectionalLight" type="DirectionalLight" parent="WorldEnvironment"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 10, 0 )
shadow_enabled = true