TestTiles.tscn 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. [gd_scene load_steps=8 format=2]
  2. [ext_resource path="res://tiles/floor_test_01.obj" type="ArrayMesh" id=1]
  3. [ext_resource path="res://tiles/tiles.material" type="Material" id=2]
  4. [ext_resource path="res://tiles/floor_test_02.obj" type="ArrayMesh" id=3]
  5. [ext_resource path="res://tiles/wall_test_01.obj" type="ArrayMesh" id=4]
  6. [sub_resource type="ConvexPolygonShape" id=1]
  7. points = PoolVector3Array( -1, 2, -1, 1, 2, -1, -1, 2, 1, 1, 2, 1, 1, 2, 1, 1, 0, 1, -1, 2, 1, -1, 0, 1, -1, 2, 1, -1, 0, 1, -1, 2, -1, -1, 0, -1, 1, 0, -1, -1, 0, -1, 1, 0, 1, -1, 0, 1, 1, 2, -1, 1, 0, -1, 1, 2, 1, 1, 0, 1, -1, 2, -1, -1, 0, -1, 1, 2, -1, 1, 0, -1 )
  8. [sub_resource type="ConvexPolygonShape" id=2]
  9. points = PoolVector3Array( -1, 2, -1, 1, 2, -1, -1, 2, 1, 1, 2, 1, 1, 2, 1, 1, 0, 1, -1, 2, 1, -1, 0, 1, -1, 2, 1, -1, 0, 1, -1, 2, -1, -1, 0, -1, 1, 0, -1, -1, 0, -1, 1, 0, 1, -1, 0, 1, 1, 2, -1, 1, 0, -1, 1, 2, 1, 1, 0, 1, -1, 2, -1, -1, 0, -1, 1, 2, -1, 1, 0, -1 )
  10. [sub_resource type="ConvexPolygonShape" id=3]
  11. points = PoolVector3Array( -1, 2, -1, 1, 2, -1, -1, 2, 1, 1, 2, 1, 1, 2, 1, 1, 0, 1, -1, 2, 1, -1, 0, 1, -1, 2, 1, -1, 0, 1, -1, 2, -1, -1, 0, -1, 1, 0, -1, -1, 0, -1, 1, 0, 1, -1, 0, 1, 1, 2, -1, 1, 0, -1, 1, 2, 1, 1, 0, 1, -1, 2, -1, -1, 0, -1, 1, 2, -1, 1, 0, -1 )
  12. [node name="TestTiles" type="Spatial"]
  13. [node name="floor_test_01" type="MeshInstance" parent="."]
  14. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 3.0025, -3.69866, -3.66555 )
  15. use_in_baked_light = true
  16. mesh = ExtResource( 1 )
  17. material/0 = ExtResource( 2 )
  18. [node name="StaticBody" type="StaticBody" parent="floor_test_01"]
  19. [node name="CollisionShape" type="CollisionShape" parent="floor_test_01/StaticBody"]
  20. shape = SubResource( 1 )
  21. [node name="floor_test_02" type="MeshInstance" parent="."]
  22. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.481318, -4.22041, -4.76871 )
  23. use_in_baked_light = true
  24. mesh = ExtResource( 3 )
  25. material/0 = ExtResource( 2 )
  26. [node name="StaticBody" type="StaticBody" parent="floor_test_02"]
  27. [node name="CollisionShape" type="CollisionShape" parent="floor_test_02/StaticBody"]
  28. shape = SubResource( 2 )
  29. [node name="wall_test_01" type="MeshInstance" parent="."]
  30. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -2.25354, -4.4704, -5.10468 )
  31. use_in_baked_light = true
  32. mesh = ExtResource( 4 )
  33. material/0 = ExtResource( 2 )
  34. [node name="StaticBody" type="StaticBody" parent="wall_test_01"]
  35. [node name="CollisionShape" type="CollisionShape" parent="wall_test_01/StaticBody"]
  36. shape = SubResource( 3 )