|
|
|
|
@ -12,11 +12,13 @@ albedo_texture = ExtResource("2_cxio0")
|
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_6qu7a"]
|
|
|
|
|
albedo_texture = ExtResource("3_re2y4")
|
|
|
|
|
|
|
|
|
|
[node name="Box" type="Node3D"]
|
|
|
|
|
[node name="Box" type="Node3D" node_paths=PackedStringArray("numberLabels")]
|
|
|
|
|
script = ExtResource("1_1tgir")
|
|
|
|
|
numberLabels = [NodePath("BoxRigidBody3D/BoxCollisionShapeBox/BoxCSGBox/NumberLabel1"), NodePath("BoxRigidBody3D/BoxCollisionShapeBox/BoxCSGBox/NumberLabel2"), NodePath("BoxRigidBody3D/BoxCollisionShapeBox/BoxCSGBox/NumberLabel3"), NodePath("BoxRigidBody3D/BoxCollisionShapeBox/BoxCSGBox/NumberLabel4"), NodePath("BoxRigidBody3D/BoxCollisionShapeBox/BoxCSGBox/NumberLabel5"), NodePath("BoxRigidBody3D/BoxCollisionShapeBox/BoxCSGBox/NumberLabel6")]
|
|
|
|
|
|
|
|
|
|
[node name="BoxRigidBody3D" type="RigidBody3D" parent="."]
|
|
|
|
|
mass = 1.5
|
|
|
|
|
contact_monitor = true
|
|
|
|
|
|
|
|
|
|
[node name="BoxCollisionShapeBox" type="CollisionShape3D" parent="BoxRigidBody3D"]
|
|
|
|
|
transform = Transform3D(1.5, 0, 0, 0, 1.5, 0, 0, 0, 1.5, 0, 0, 0)
|
|
|
|
|
@ -26,9 +28,46 @@ shape = SubResource("BoxShape3D_6js7j")
|
|
|
|
|
material_override = SubResource("StandardMaterial3D_dsxvl")
|
|
|
|
|
material = SubResource("StandardMaterial3D_6qu7a")
|
|
|
|
|
|
|
|
|
|
[node name="NumberLabel" type="Label3D" parent="BoxRigidBody3D/BoxCollisionShapeBox/BoxCSGBox"]
|
|
|
|
|
[node name="NumberLabel1" type="Label3D" parent="BoxRigidBody3D/BoxCollisionShapeBox/BoxCSGBox"]
|
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.501989)
|
|
|
|
|
modulate = Color(0, 0, 0, 1)
|
|
|
|
|
outline_modulate = Color(1, 1, 1, 1)
|
|
|
|
|
text = "1"
|
|
|
|
|
font_size = 64
|
|
|
|
|
|
|
|
|
|
[node name="NumberLabel2" type="Label3D" parent="BoxRigidBody3D/BoxCollisionShapeBox/BoxCSGBox"]
|
|
|
|
|
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, -0.507081)
|
|
|
|
|
modulate = Color(0, 0, 0, 1)
|
|
|
|
|
outline_modulate = Color(1, 1, 1, 1)
|
|
|
|
|
text = "1"
|
|
|
|
|
font_size = 64
|
|
|
|
|
|
|
|
|
|
[node name="NumberLabel3" type="Label3D" parent="BoxRigidBody3D/BoxCollisionShapeBox/BoxCSGBox"]
|
|
|
|
|
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0.501548, 0, 0.00197419)
|
|
|
|
|
modulate = Color(0, 0, 0, 1)
|
|
|
|
|
outline_modulate = Color(1, 1, 1, 1)
|
|
|
|
|
text = "1"
|
|
|
|
|
font_size = 64
|
|
|
|
|
|
|
|
|
|
[node name="NumberLabel4" type="Label3D" parent="BoxRigidBody3D/BoxCollisionShapeBox/BoxCSGBox"]
|
|
|
|
|
transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, -0.518733, 0, 0.00849569)
|
|
|
|
|
modulate = Color(0, 0, 0, 1)
|
|
|
|
|
outline_modulate = Color(1, 1, 1, 1)
|
|
|
|
|
text = "1"
|
|
|
|
|
font_size = 64
|
|
|
|
|
|
|
|
|
|
[node name="NumberLabel5" type="Label3D" parent="BoxRigidBody3D/BoxCollisionShapeBox/BoxCSGBox"]
|
|
|
|
|
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, -0.0149789, 0.503353, -0.023538)
|
|
|
|
|
modulate = Color(0, 0, 0, 1)
|
|
|
|
|
outline_modulate = Color(1, 1, 1, 1)
|
|
|
|
|
text = "1"
|
|
|
|
|
font_size = 64
|
|
|
|
|
|
|
|
|
|
[node name="NumberLabel6" type="Label3D" parent="BoxRigidBody3D/BoxCollisionShapeBox/BoxCSGBox"]
|
|
|
|
|
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, -0.506804, 0.0168197)
|
|
|
|
|
modulate = Color(0, 0, 0, 1)
|
|
|
|
|
outline_modulate = Color(1, 1, 1, 1)
|
|
|
|
|
text = "1"
|
|
|
|
|
font_size = 64
|
|
|
|
|
|
|
|
|
|
[connection signal="body_entered" from="BoxRigidBody3D" to="." method="_on_box_rigid_body_3d_body_entered"]
|
|
|
|
|
|