]> Untitled Git - lightcycles.git/commitdiff
Added triplanar player wall textures and added arena walls
authorClifton Palmer <clifton.james.palmer@protonmail.com>
Wed, 18 Dec 2024 09:33:53 +0000 (11:33 +0200)
committerClifton Palmer <clifton.james.palmer@protonmail.com>
Wed, 18 Dec 2024 09:44:50 +0000 (11:44 +0200)
map/world.tscn
player/player.tscn
player/player_wall.tscn

index c392607af233661c00b5f5a19f66a7b03ce5f177..6cc47f781d3ba1c0491e6f1fb10905b93683b48e 100644 (file)
@@ -1,4 +1,4 @@
-[gd_scene load_steps=7 format=3 uid="uid://6tmryoxhs3yq"]
+[gd_scene load_steps=9 format=3 uid="uid://6tmryoxhs3yq"]
 
 [ext_resource type="PackedScene" uid="uid://dysxftv7xniv0" path="res://player/player.tscn" id="1_3tqxd"]
 [ext_resource type="Script" path="res://map/world.gd" id="1_mjcfj"]
@@ -7,7 +7,9 @@
 [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ul8mq"]
 albedo_color = Color(0.199732, 0.199732, 0.199732, 1)
 albedo_texture = ExtResource("2_sxhh7")
-uv1_scale = Vector3(20, 20, 20)
+uv1_scale = Vector3(0.5, 0.5, 0.5)
+uv1_triplanar = true
+uv1_world_triplanar = true
 texture_filter = 0
 
 [sub_resource type="PlaneMesh" id="PlaneMesh_43sel"]
@@ -17,6 +19,12 @@ size = Vector2(50, 50)
 [sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_t6tpe"]
 data = PackedVector3Array(25, 0, 25, -25, 0, 25, 25, 0, -25, -25, 0, 25, -25, 0, -25, 25, 0, -25)
 
+[sub_resource type="PlaneMesh" id="PlaneMesh_0exak"]
+size = Vector2(10, 50)
+
+[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_qttgn"]
+data = PackedVector3Array(5, 0, 25, -5, 0, 25, 5, 0, -25, -5, 0, 25, -5, 0, -25, 5, 0, -25)
+
 [node name="World" type="Node3D"]
 script = ExtResource("1_mjcfj")
 
@@ -26,15 +34,55 @@ script = ExtResource("1_mjcfj")
 transform = Transform3D(-0.866025, -0.433013, 0.25, 0, 0.5, 0.866025, -0.5, 0.75, -0.433013, 0, 10, 0)
 shadow_enabled = true
 
-[node name="MeshInstance3D" type="MeshInstance3D" parent="map"]
+[node name="ground" type="MeshInstance3D" parent="map"]
 mesh = SubResource("PlaneMesh_43sel")
 skeleton = NodePath("../..")
 
-[node name="StaticBody3D" type="StaticBody3D" parent="map/MeshInstance3D"]
+[node name="StaticBody3D" type="StaticBody3D" parent="map/ground"]
 
-[node name="CollisionShape3D" type="CollisionShape3D" parent="map/MeshInstance3D/StaticBody3D"]
+[node name="CollisionShape3D" type="CollisionShape3D" parent="map/ground/StaticBody3D"]
 shape = SubResource("ConcavePolygonShape3D_t6tpe")
 
+[node name="wall" type="MeshInstance3D" parent="map"]
+transform = Transform3D(-4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0, 1, 25, 5, 0)
+mesh = SubResource("PlaneMesh_0exak")
+skeleton = NodePath("../..")
+
+[node name="StaticBody3D" type="StaticBody3D" parent="map/wall"]
+
+[node name="CollisionShape3D" type="CollisionShape3D" parent="map/wall/StaticBody3D"]
+shape = SubResource("ConcavePolygonShape3D_qttgn")
+
+[node name="wall2" type="MeshInstance3D" parent="map"]
+transform = Transform3D(4.37114e-08, 1, 8.74228e-08, 1, -4.37114e-08, 0, 3.82137e-15, 8.74228e-08, -1, -25, 5, 0)
+mesh = SubResource("PlaneMesh_0exak")
+skeleton = NodePath("../..")
+
+[node name="StaticBody3D" type="StaticBody3D" parent="map/wall2"]
+
+[node name="CollisionShape3D" type="CollisionShape3D" parent="map/wall2/StaticBody3D"]
+shape = SubResource("ConcavePolygonShape3D_qttgn")
+
+[node name="wall3" type="MeshInstance3D" parent="map"]
+transform = Transform3D(-5.73206e-15, -1.31134e-07, 1, 1, -4.37114e-08, 0, 4.37114e-08, 1, 1.31134e-07, 0, 5, -25)
+mesh = SubResource("PlaneMesh_0exak")
+skeleton = NodePath("../..")
+
+[node name="StaticBody3D" type="StaticBody3D" parent="map/wall3"]
+
+[node name="CollisionShape3D" type="CollisionShape3D" parent="map/wall3/StaticBody3D"]
+shape = SubResource("ConcavePolygonShape3D_qttgn")
+
+[node name="wall4" type="MeshInstance3D" parent="map"]
+transform = Transform3D(1.91069e-15, 4.37114e-08, -1, 1, -4.37114e-08, 0, -4.37114e-08, -1, -4.37114e-08, 0, 5, 25)
+mesh = SubResource("PlaneMesh_0exak")
+skeleton = NodePath("../..")
+
+[node name="StaticBody3D" type="StaticBody3D" parent="map/wall4"]
+
+[node name="CollisionShape3D" type="CollisionShape3D" parent="map/wall4/StaticBody3D"]
+shape = SubResource("ConcavePolygonShape3D_qttgn")
+
 [node name="player" parent="." instance=ExtResource("1_3tqxd")]
 transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -16)
 distance = 5.0
index f86859d1b793d1842c15a5cd9578c875988d1253..1282f9c4874d9eb24731ab3d72691268c7a69005 100644 (file)
@@ -4,7 +4,7 @@
 [ext_resource type="PackedScene" uid="uid://d13jnq5vpvhl0" path="res://skins/bike/bike.tscn" id="1_m3abw"]
 
 [sub_resource type="BoxShape3D" id="BoxShape3D_tm1pp"]
-size = Vector3(0.158371, 0.45752, 0.144958)
+size = Vector3(0.233, 0.458, 0.0839297)
 
 [node name="Player" type="CharacterBody3D"]
 transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.367284)
@@ -14,12 +14,11 @@ script = ExtResource("1_kh0vu")
 unique_name_in_owner = true
 
 [node name="CollisionShape3D" type="CollisionShape3D" parent="."]
-transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.00136566, 0.234772, 0.446018)
+transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00212288, 0.234772, 0.415421)
 shape = SubResource("BoxShape3D_tm1pp")
 
 [node name="SpringArm3D" type="SpringArm3D" parent="."]
-transform = Transform3D(-1, 0, -8.74228e-08, -2.26267e-08, 0.965926, 0.258819, 8.44439e-08, 0.258819, -0.965926, 0, 0.544421, 0.412464)
-spring_length = 0.0
+transform = Transform3D(-1, -2.99003e-08, 8.21505e-08, 0, 0.939693, 0.34202, -8.74228e-08, 0.34202, -0.939693, 0, 0.544421, 0.412464)
 
 [node name="Camera3D" type="Camera3D" parent="SpringArm3D"]
 
index dae979cfd81623c1176e78391c53ceb152242f48..60918fb1bd621ca38f2f5403f776e8f76f82b3de 100644 (file)
@@ -1,16 +1,20 @@
-[gd_scene load_steps=5 format=3 uid="uid://6a20phajjwu8"]
+[gd_scene load_steps=6 format=3 uid="uid://6a20phajjwu8"]
 
 [ext_resource type="Script" path="res://player/player_wall.gd" id="1_rj8im"]
+[ext_resource type="Texture2D" uid="uid://cp8pv6wya3ep2" path="res://textures/untextured.png" id="2_oiq6c"]
 
 [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_sk1tc"]
 albedo_color = Color(0.1152, 0.8192, 0.96, 1)
+albedo_texture = ExtResource("2_oiq6c")
 emission_enabled = true
 emission = Color(0.354498, 0.45596, 0.814702, 1)
 emission_energy_multiplier = 1.44
+uv1_triplanar = true
+uv1_world_triplanar = true
 
 [sub_resource type="BoxMesh" id="BoxMesh_p4d0s"]
 material = SubResource("StandardMaterial3D_sk1tc")
-size = Vector3(1, 0.01, 1)
+size = Vector3(1, 0.02, 1)
 
 [sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_71bu6"]
 data = PackedVector3Array(-0.5, 0.005, 0.5, 0.5, 0.005, 0.5, -0.5, -0.005, 0.5, 0.5, 0.005, 0.5, 0.5, -0.005, 0.5, -0.5, -0.005, 0.5, 0.5, 0.005, -0.5, -0.5, 0.005, -0.5, 0.5, -0.005, -0.5, -0.5, 0.005, -0.5, -0.5, -0.005, -0.5, 0.5, -0.005, -0.5, 0.5, 0.005, 0.5, 0.5, 0.005, -0.5, 0.5, -0.005, 0.5, 0.5, 0.005, -0.5, 0.5, -0.005, -0.5, 0.5, -0.005, 0.5, -0.5, 0.005, -0.5, -0.5, 0.005, 0.5, -0.5, -0.005, -0.5, -0.5, 0.005, 0.5, -0.5, -0.005, 0.5, -0.5, -0.005, -0.5, 0.5, 0.005, 0.5, -0.5, 0.005, 0.5, 0.5, 0.005, -0.5, -0.5, 0.005, 0.5, -0.5, 0.005, -0.5, 0.5, 0.005, -0.5, -0.5, -0.005, 0.5, 0.5, -0.005, 0.5, -0.5, -0.005, -0.5, 0.5, -0.005, 0.5, 0.5, -0.005, -0.5, -0.5, -0.005, -0.5)