Wheel.tscn 707 B

1234567891011121314151617181920212223242526
  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 )