Wheel.tscn 948 B

1234567891011121314151617181920212223242526272829303132
  1. [gd_scene load_steps=5 format=2]
  2. [ext_resource path="res://component/entity/wheel/BikeWheel.png" type="Texture" id=1]
  3. [ext_resource path="res://component/entity/wheel/Wheel.gd" type="Script" id=2]
  4. [sub_resource type="PhysicsMaterial" id=2]
  5. rough = true
  6. bounce = 0.9
  7. [sub_resource type="CircleShape2D" id=1]
  8. radius = 33.1812
  9. [node name="Wheel" type="RigidBody2D"]
  10. mass = 0.25
  11. physics_material_override = SubResource( 2 )
  12. angular_damp = 0.0
  13. script = ExtResource( 2 )
  14. min_linear_speed = 200
  15. max_linear_speed = 325
  16. max_angular_speed = 18.85
  17. [node name="Shape" type="CollisionShape2D" parent="."]
  18. shape = SubResource( 1 )
  19. [node name="Sprite" type="Sprite" parent="."]
  20. scale = Vector2( 2, 2 )
  21. texture = ExtResource( 1 )
  22. [node name="VisibilityNotifier2D" type="VisibilityNotifier2D" parent="."]
  23. rect = Rect2( -32, -32, 64, 64 )
  24. [connection signal="screen_exited" from="VisibilityNotifier2D" to="." method="_on_VisibilityNotifier2D_screen_exited"]