added breakable objects
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://bpkmyd3wvqi5p"]
|
||||
[gd_scene load_steps=9 format=3 uid="uid://bpkmyd3wvqi5p"]
|
||||
|
||||
[ext_resource type="AudioStream" uid="uid://diwsk0cw41ep1" path="res://assets/Audio/Music/Test Songs/easy-walk-SBA-347061820.wav" id="1_0tv5a"]
|
||||
[ext_resource type="Script" path="res://scripts/breakable.gd" id="1_dm2iv"]
|
||||
[ext_resource type="PackedScene" uid="uid://ccnnxudjaptb4" path="res://assets/boombox_broken.tscn" id="2_26e0l"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_1swe3"]
|
||||
size = Vector3(2.04077, 0.734375, 0.581665)
|
||||
@@ -76,10 +78,12 @@ _surfaces = [{
|
||||
blend_shape_mode = 0
|
||||
shadow_mesh = SubResource("ArrayMesh_nxwjy")
|
||||
|
||||
[node name="Boombox" type="RigidBody3D" groups=["scene_rigidbody"]]
|
||||
[node name="Boombox" type="RigidBody3D" groups=["breakable", "scene_rigidbody"]]
|
||||
collision_layer = 2
|
||||
collision_mask = 7
|
||||
continuous_cd = true
|
||||
script = ExtResource("1_dm2iv")
|
||||
broken_object = ExtResource("2_26e0l")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.433783, 0.16095)
|
||||
|
||||
Reference in New Issue
Block a user