cubio.tscn 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. [gd_scene load_steps=8 format=3 uid="uid://cbvuesb1ptdh4"]
  2. [ext_resource type="Script" path="res://player/cubio.gd" id="1"]
  3. [ext_resource type="Script" path="res://player/follow_camera.gd" id="3"]
  4. [ext_resource type="Material" uid="uid://6m447vojdbos" path="res://models/white_cube_material.tres" id="4"]
  5. [sub_resource type="PhysicsMaterial" id="PhysicsMaterial_5bo75"]
  6. friction = 0.5
  7. [sub_resource type="CapsuleMesh" id="6"]
  8. height = 1.7
  9. [sub_resource type="CapsuleShape3D" id="5"]
  10. height = 1.7
  11. [sub_resource type="CylinderShape3D" id="CylinderShape3D_vn0tg"]
  12. height = 0.5
  13. radius = 0.48
  14. [node name="RigidDynamicBody3D" type="RigidBody3D"]
  15. axis_lock_angular_x = true
  16. axis_lock_angular_y = true
  17. axis_lock_angular_z = true
  18. center_of_mass_mode = 1
  19. physics_material_override = SubResource("PhysicsMaterial_5bo75")
  20. can_sleep = false
  21. linear_damp_mode = 1
  22. linear_damp = 0.5
  23. script = ExtResource("1")
  24. [node name="CapsuleMesh" type="MeshInstance3D" parent="."]
  25. _import_path = NodePath("cube-col")
  26. mesh = SubResource("6")
  27. skeleton = NodePath("")
  28. surface_material_override/0 = ExtResource("4")
  29. [node name="CollisionShape3D" type="CollisionShape3D" parent="."]
  30. shape = SubResource("5")
  31. [node name="Target" type="Node3D" parent="."]
  32. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.8, 0)
  33. [node name="Camera3D" type="Camera3D" parent="Target"]
  34. transform = Transform3D(0.34202, -0.321394, 0.883022, 0, 0.939693, 0.34202, -0.939693, -0.116978, 0.321394, 2, 0.5, 0.913381)
  35. fov = 74.0
  36. near = 0.1
  37. far = 50.0
  38. script = ExtResource("3")
  39. [node name="WinText" type="CenterContainer" parent="."]
  40. visible = false
  41. anchors_preset = 10
  42. anchor_right = 1.0
  43. offset_bottom = 100.0
  44. grow_horizontal = 2
  45. [node name="Holder" type="Control" parent="WinText"]
  46. layout_mode = 2
  47. [node name="TextLabel" type="Label" parent="WinText/Holder"]
  48. layout_mode = 0
  49. offset_left = -354.0
  50. offset_right = 354.0
  51. offset_bottom = 50.0
  52. theme_override_font_sizes/font_size = 20
  53. text = "Thank You, Cubio! But the Princess is in Another Demo!"
  54. horizontal_alignment = 1
  55. vertical_alignment = 1
  56. [node name="ShapeCast3D" type="ShapeCast3D" parent="."]
  57. shape = SubResource("CylinderShape3D_vn0tg")
  58. target_position = Vector3(0, -0.61, 0)