AxisMarker3D.tscn 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. [gd_scene load_steps=7 format=2]
  2. [ext_resource path="res://marker/AxisMarker3D.gd" type="Script" id=1]
  3. [sub_resource type="BoxMesh" id=1]
  4. size = Vector3(1, 1, 1)
  5. [sub_resource type="StandardMaterial3D" id=2]
  6. albedo_color = Color(0, 1, 1, 1)
  7. [sub_resource type="StandardMaterial3D" id=3]
  8. albedo_color = Color(1, 0, 0, 1)
  9. [sub_resource type="StandardMaterial3D" id=4]
  10. albedo_color = Color(0, 1, 0, 1)
  11. [sub_resource type="StandardMaterial3D" id=5]
  12. albedo_color = Color(0, 0, 1, 1)
  13. [node name="AxisMarker" type="Node3D"]
  14. script = ExtResource( 1 )
  15. [node name="Origin" type="Node" parent="."]
  16. [node name="Holder" type="Node3D" parent="Origin"]
  17. [node name="Cube" type="MeshInstance3D" parent="Origin/Holder"]
  18. transform = Transform3D(0.0001, 0, 0, 0, 0.0001, 0, 0, 0, 0.0001, 0, 0, 0)
  19. mesh = SubResource( 1 )
  20. surface_material_override/0 = SubResource( 2 )
  21. [node name="Center" type="MeshInstance3D" parent="."]
  22. transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0, 0, 0)
  23. mesh = SubResource( 1 )
  24. surface_material_override/0 = SubResource( 2 )
  25. [node name="X" type="MeshInstance3D" parent="."]
  26. transform = Transform3D(1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0.55, 0, 0)
  27. mesh = SubResource( 1 )
  28. surface_material_override/0 = SubResource( 3 )
  29. [node name="Y" type="MeshInstance3D" parent="."]
  30. transform = Transform3D(0.1, 0, 0, 0, 1, 0, 0, 0, 0.1, 0, 0.55, 0)
  31. mesh = SubResource( 1 )
  32. surface_material_override/0 = SubResource( 4 )
  33. [node name="Z" type="MeshInstance3D" parent="."]
  34. transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 1, 0, 0, 0.55)
  35. mesh = SubResource( 1 )
  36. surface_material_override/0 = SubResource( 5 )