Wheel.tscn 934 B

123456789101112131415161718192021222324252627282930
  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. bounce = 0.9
  6. [sub_resource type="CircleShape2D" id=1]
  7. radius = 33.1812
  8. [node name="Wheel" type="RigidBody2D"]
  9. mass = 0.1
  10. physics_material_override = SubResource( 2 )
  11. angular_damp = 0.0
  12. script = ExtResource( 2 )
  13. min_linear_speed = 200
  14. max_linear_speed = 400
  15. max_angular_speed = 25.132
  16. [node name="Shape" type="CollisionShape2D" parent="."]
  17. shape = SubResource( 1 )
  18. [node name="Sprite" type="Sprite" parent="."]
  19. scale = Vector2( 2, 2 )
  20. texture = ExtResource( 1 )
  21. [node name="VisibilityNotifier2D" type="VisibilityNotifier2D" parent="."]
  22. rect = Rect2( -32, -32, 64, 64 )
  23. [connection signal="screen_exited" from="VisibilityNotifier2D" to="." method="_on_VisibilityNotifier2D_screen_exited"]