box.tscn 728 B

123456789101112131415161718192021
  1. [gd_scene load_steps=4 format=3 uid="uid://bcpri2x5afoyb"]
  2. [ext_resource type="PackedScene" uid="uid://bii08dedmqwkm" path="res://component/entity/props/box/CubeContainer.glb" id="1_n6b7q"]
  3. [sub_resource type="PhysicsMaterial" id="PhysicsMaterial_ldttd"]
  4. friction = 0.9
  5. bounce = 0.2
  6. [sub_resource type="BoxShape3D" id="BoxShape3D_v0rct"]
  7. [node name="Box" type="RigidBody3D"]
  8. collision_layer = 16
  9. collision_mask = 31
  10. mass = 35.0
  11. physics_material_override = SubResource("PhysicsMaterial_ldttd")
  12. [node name="Shape" type="CollisionShape3D" parent="."]
  13. shape = SubResource("BoxShape3D_v0rct")
  14. [node name="CubeContainer" parent="." instance=ExtResource("1_n6b7q")]
  15. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.5, 0)