X-Git-Url: http://git.purplebirdman.com/frog-ninja.git/blobdiff_plain/3701448ba7e2410adf79dd4a326c0d47a9cc8240..refs/heads/state-machine:/map/cube.tscn?ds=sidebyside diff --git a/map/cube.tscn b/map/cube.tscn index 2984a63..895fa89 100644 --- a/map/cube.tscn +++ b/map/cube.tscn @@ -4,16 +4,15 @@ [sub_resource type="BoxMesh" id="BoxMesh_tgywu"] -[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_w8p6k"] -data = PackedVector3Array(-0.5, 0.5, 0.5, 0.5, 0.5, 0.5, -0.5, -0.5, 0.5, 0.5, 0.5, 0.5, 0.5, -0.5, 0.5, -0.5, -0.5, 0.5, 0.5, 0.5, -0.5, -0.5, 0.5, -0.5, 0.5, -0.5, -0.5, -0.5, 0.5, -0.5, -0.5, -0.5, -0.5, 0.5, -0.5, -0.5, 0.5, 0.5, 0.5, 0.5, 0.5, -0.5, 0.5, -0.5, 0.5, 0.5, 0.5, -0.5, 0.5, -0.5, -0.5, 0.5, -0.5, 0.5, -0.5, 0.5, -0.5, -0.5, 0.5, 0.5, -0.5, -0.5, -0.5, -0.5, 0.5, 0.5, -0.5, -0.5, 0.5, -0.5, -0.5, -0.5, 0.5, 0.5, 0.5, -0.5, 0.5, 0.5, 0.5, 0.5, -0.5, -0.5, 0.5, 0.5, -0.5, 0.5, -0.5, 0.5, 0.5, -0.5, -0.5, -0.5, 0.5, 0.5, -0.5, 0.5, -0.5, -0.5, -0.5, 0.5, -0.5, 0.5, 0.5, -0.5, -0.5, -0.5, -0.5, -0.5) +[sub_resource type="BoxShape3D" id="BoxShape3D_w8p6k"] -[node name="Cube" type="Node3D"] +[node name="Cube" type="RigidBody3D"] +collision_layer = 4 +collision_mask = 7 [node name="MeshInstance3D" type="MeshInstance3D" parent="."] mesh = SubResource("BoxMesh_tgywu") surface_material_override/0 = ExtResource("1_w8p6k") -[node name="StaticBody3D" type="StaticBody3D" parent="MeshInstance3D"] - -[node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D/StaticBody3D"] -shape = SubResource("ConcavePolygonShape3D_w8p6k") +[node name="hitbox" type="CollisionShape3D" parent="." groups=["hitbox"]] +shape = SubResource("BoxShape3D_w8p6k")