simple_bullet.tscn 996 B

1234567891011121314151617181920212223242526272829303132333435
  1. [gd_scene load_steps=6 format=3 uid="uid://d36uvu4r5qtpi"]
  2. [ext_resource type="Script" path="res://fps/simple_bullet.gd" id="1"]
  3. [sub_resource type="PhysicsMaterial" id="1"]
  4. bounce = 0.5
  5. [sub_resource type="SphereMesh" id="2"]
  6. [sub_resource type="StandardMaterial3D" id="3"]
  7. albedo_color = Color(0.769531, 0.486969, 0, 1)
  8. emission_enabled = true
  9. emission = Color(1, 0.445313, 0, 1)
  10. emission_energy = 1.8
  11. [sub_resource type="SphereShape3D" id="4"]
  12. radius = 0.4
  13. [node name="SimpleBullet" type="RigidDynamicBody3D"]
  14. mass = 2.0
  15. physics_material_override = SubResource( "1" )
  16. gravity_scale = 3.0
  17. continuous_cd = true
  18. can_sleep = false
  19. linear_damp = 0.4
  20. script = ExtResource( "1" )
  21. [node name="MeshInstance3D" type="MeshInstance3D" parent="."]
  22. transform = Transform3D(0.4, 0, 0, 0, 0.4, 0, 0, 0, 0.4, 0, 0, 0)
  23. cast_shadow = 0
  24. mesh = SubResource( "2" )
  25. surface_material_override/0 = SubResource( "3" )
  26. [node name="CollisionShape3D" type="CollisionShape3D" parent="."]
  27. shape = SubResource( "4" )