]> Untitled Git - frog-ninja.git/blobdiff - map/cube.tscn
Added landing states
[frog-ninja.git] / map / cube.tscn
index 2984a63eb14287a0c22f943bae5692291b5b3bdd..895fa89f94e0069bd8a679a82a6a146886bc63a4 100644 (file)
@@ -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")