Selaa lähdekoodia

samples: update .unit and .level files

Daniele Bartolini 5 vuotta sitten
vanhempi
sitoutus
3a736dafca

+ 8 - 8
samples/01-physics/levels/test.level

@@ -312,19 +312,19 @@ units = [
 				data = {
 					position = [
 						0
-						0
+						30
 						0
 					]
 					rotation = [
 						0
+						0.99999999999999833
 						0
-						0
-						1
+						5.8555627846454029e-08
 					]
 					scale = [
-						1
-						1
-						1
+						512.00000000000193
+						512
+						512.00000000000193
 					]
 				}
 				type = "transform"
@@ -1072,9 +1072,9 @@ units = [
 						0.70710700000000004
 					]
 					scale = [
+						8
 						1
-						1
-						1
+						8
 					]
 				}
 				type = "transform"

+ 10 - 11
samples/01-physics/units/cube.unit

@@ -1,14 +1,13 @@
-
 components = [
 	{
 		data = {
+			class = "dynamic"
+			collision_filter = "default"
+			mass = 10
 			material = "default"
-			name = "Cube"
-			scene = "units/cube"
-			shape = "box"
 		}
-		id = "a122f56c-be01-46da-9459-c84bc7381221"
-		type = "collider"
+		id = "171eb351-61a4-4f6d-a069-f52ca7b0dc55"
+		type = "actor"
 	}
 	{
 		data = {
@@ -22,13 +21,13 @@ components = [
 	}
 	{
 		data = {
-			class = "dynamic"
-			collision_filter = "default"
-			mass = 10
 			material = "default"
+			name = "Cube"
+			scene = "units/cube"
+			shape = "box"
 		}
-		id = "171eb351-61a4-4f6d-a069-f52ca7b0dc55"
-		type = "actor"
+		id = "a122f56c-be01-46da-9459-c84bc7381221"
+		type = "collider"
 	}
 	{
 		data = {

+ 23 - 24
samples/01-physics/units/plane.unit

@@ -1,27 +1,4 @@
-
 components = [
-	{
-		data = {
-			position = [
-				0
-				0
-				0
-			]
-			rotation = [
-				0
-				0
-				0
-				1
-			]
-			scale = [
-				1
-				1
-				1
-			]
-		}
-		id = "805e9323-578b-4d22-8414-b15b1a5ff7bc"
-		type = "transform"
-	}
 	{
 		data = {
 			material = "default"
@@ -46,10 +23,32 @@ components = [
 		data = {
 			class = "static"
 			collision_filter = "default"
-			mass = 50
+			mass = 10
 			material = "default"
 		}
 		id = "52cec360-697d-4493-a369-1674bcb1d236"
 		type = "actor"
 	}
+	{
+		data = {
+			position = [
+				0
+				0
+				0
+			]
+			rotation = [
+				0
+				0
+				0
+				1
+			]
+			scale = [
+				1
+				1
+				1
+			]
+		}
+		id = "805e9323-578b-4d22-8414-b15b1a5ff7bc"
+		type = "transform"
+	}
 ]

+ 12 - 13
samples/01-physics/units/ramp.unit

@@ -1,15 +1,4 @@
-
 components = [
-	{
-		data = {
-			geometry_name = "Cube"
-			material = "units/grid"
-			mesh_resource = "units/ramp"
-			visible = true
-		}
-		id = "e8d9961f-d868-4b26-a4d7-7d2891cead99"
-		type = "mesh_renderer"
-	}
 	{
 		data = {
 			position = [
@@ -24,9 +13,9 @@ components = [
 				1
 			]
 			scale = [
+				8
 				1
-				1
-				1
+				8
 			]
 		}
 		id = "1089a8ef-c51f-417d-9160-3716b5b441d7"
@@ -52,4 +41,14 @@ components = [
 		id = "d79ef8c9-b2c1-4a67-adc9-07154f7352d7"
 		type = "collider"
 	}
+	{
+		data = {
+			geometry_name = "Cube"
+			material = "units/grid"
+			mesh_resource = "units/ramp"
+			visible = true
+		}
+		id = "e8d9961f-d868-4b26-a4d7-7d2891cead99"
+		type = "mesh_renderer"
+	}
 ]

+ 16 - 17
samples/01-physics/units/skydome.unit

@@ -1,35 +1,34 @@
-
 components = [
-	{
-		data = {
-			geometry_name = "Sphere"
-			material = "units/skydome"
-			mesh_resource = "units/skydome"
-			visible = true
-		}
-		id = "cc39f446-7e04-40f1-9770-2b44c3f41b0f"
-		type = "mesh_renderer"
-	}
 	{
 		data = {
 			position = [
 				0
-				0
+				30
 				0
 			]
 			rotation = [
 				0
+				0.99999999999999833
 				0
-				0
-				1
+				5.8555627846454029e-08
 			]
 			scale = [
-				1
-				1
-				1
+				512.00000000000193
+				512
+				512.00000000000193
 			]
 		}
 		id = "6ef7e034-8519-4189-9527-04dfe17aebca"
 		type = "transform"
 	}
+	{
+		data = {
+			geometry_name = "Sphere"
+			material = "units/skydome"
+			mesh_resource = "units/skydome"
+			visible = true
+		}
+		id = "cc39f446-7e04-40f1-9770-2b44c3f41b0f"
+		type = "mesh_renderer"
+	}
 ]

+ 22 - 23
samples/01-physics/units/sphere.unit

@@ -1,5 +1,26 @@
-
 components = [
+	{
+		data = {
+			position = [
+				0
+				0
+				0
+			]
+			rotation = [
+				0
+				0
+				0
+				1
+			]
+			scale = [
+				1
+				1
+				1
+			]
+		}
+		id = "637b5db3-1074-4852-a9f2-59c2eea2c2a5"
+		type = "transform"
+	}
 	{
 		data = {
 			geometry_name = "Sphere"
@@ -30,26 +51,4 @@ components = [
 		id = "cff93999-e1aa-4b23-bc10-d2897e061c26"
 		type = "actor"
 	}
-	{
-		data = {
-			position = [
-				0
-				0
-				0
-			]
-			rotation = [
-				0
-				0
-				0
-				1
-			]
-			scale = [
-				1
-				1
-				1
-			]
-		}
-		id = "637b5db3-1074-4852-a9f2-59c2eea2c2a5"
-		type = "transform"
-	}
 ]