Player.tscn 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. [gd_scene load_steps=5 format=2]
  2. [ext_resource path="res://Scripts/PlayerCharacters/Player.gd" type="Script" id=1]
  3. [ext_resource path="res://Scenes/Characters/franck_model.tscn" type="PackedScene" id=2]
  4. [ext_resource path="res://Scripts/PlayerCharacters/PlayerInventory.gd" type="Script" id=3]
  5. [sub_resource type="CapsuleShape" id=1]
  6. radius = 1.04271
  7. height = 0.828231
  8. [node name="Player" type="KinematicBody" index="0"]
  9. transform = Transform( 1, -2.38419e-07, 5.30863e-14, 9.19296e-14, 1.62921e-07, -1, 2.38419e-07, 1, 1.62921e-07, 0, 0, 0 )
  10. input_ray_pickable = true
  11. input_capture_on_drag = false
  12. collision_layer = 31
  13. collision_mask = 31
  14. axis_lock_linear_x = false
  15. axis_lock_linear_y = false
  16. axis_lock_linear_z = false
  17. axis_lock_angular_x = false
  18. axis_lock_angular_y = false
  19. axis_lock_angular_z = false
  20. collision/safe_margin = 0.07
  21. script = ExtResource( 1 )
  22. _sections_unfolded = [ "Collision", "Pause", "Transform", "Visibility", "collision" ]
  23. max_speed = 13.5
  24. acceleration = 10
  25. turn_acceleration = 12
  26. max_speed_back = 180
  27. acceleration_back = 90
  28. turn_speed = 3.3
  29. gravity = -21
  30. [node name="franck_model" parent="." index="0" instance=ExtResource( 2 )]
  31. transform = Transform( 1.3, -1.35525e-20, 0, 0, -2.11797e-07, 1.3, -2.37169e-20, -1.3, -2.11797e-07, -4.85698e-16, -8.6077e-10, 0.00528336 )
  32. visible = false
  33. _sections_unfolded = [ "Transform" ]
  34. [node name="CollisionShape" type="CollisionShape" parent="." index="1"]
  35. transform = Transform( 1, -4.76839e-07, 3.2243e-14, -4.76838e-07, -1, -8.74228e-08, 6.35078e-14, 8.74227e-08, -1, -3.10246e-08, -0.130127, -1.53832 )
  36. shape = SubResource( 1 )
  37. disabled = false
  38. _sections_unfolded = [ "Transform" ]
  39. [node name="WallRayCast" type="RayCast" parent="CollisionShape" index="0"]
  40. transform = Transform( 1, -4.57766e-07, 9.34404e-08, -4.57765e-07, -0.920003, 0.39191, -9.34389e-08, -0.39191, -0.920003, 3.98413e-07, 0.872041, 0.504633 )
  41. enabled = true
  42. exclude_parent = true
  43. cast_to = Vector3( 0, -1, 0.3 )
  44. collision_mask = 1
  45. [node name="FloorRayCast" type="RayCast" parent="CollisionShape" index="1"]
  46. transform = Transform( 1, -2.3842e-07, -2.3842e-07, -2.38419e-07, -4.37114e-08, -1, 2.38419e-07, 1, -4.37113e-08, 1.92403e-07, 0.00797796, -1.16973 )
  47. enabled = true
  48. exclude_parent = true
  49. cast_to = Vector3( 0, -0.5, 0 )
  50. collision_mask = 1
  51. [node name="PlayerInventory" type="Node" parent="." index="2"]
  52. script = ExtResource( 3 )
  53. _sections_unfolded = [ "Pause" ]
  54. item_dict = {
  55. 0: 0
  56. }
  57. activeInventorySlot = ""
  58. [node name="PlayerCamera" type="Camera" parent="." index="3"]
  59. transform = Transform( 1, -2.38419e-07, 2.38419e-07, -2.38419e-07, -4.37115e-08, 1, -2.38419e-07, -1, -4.37114e-08, -3.18193e-07, -1.33459, -2.36206 )
  60. keep_aspect = 1
  61. cull_mask = 1048575
  62. environment = null
  63. h_offset = 0.0
  64. v_offset = 0.0
  65. doppler_tracking = 0
  66. projection = 0
  67. current = true
  68. fov = 70.0
  69. size = 1.0
  70. near = 0.02
  71. far = 400.0
  72. _sections_unfolded = [ "Transform" ]