Evolution/scenes/Box.tscn

74 lines
3.4 KiB
Plaintext

[gd_scene load_steps=7 format=3 uid="uid://bpf3krgeeo7pt"]
[ext_resource type="Script" path="res://scripts/Box.cs" id="1_1tgir"]
[ext_resource type="Texture2D" uid="uid://ywdr7yob5t2w" path="res://graphics/Orange/texture_01.png" id="2_cxio0"]
[ext_resource type="Texture2D" uid="uid://chwbsjtku5ps0" path="res://graphics/texture_01.svg" id="3_re2y4"]
[sub_resource type="BoxShape3D" id="BoxShape3D_6js7j"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_dsxvl"]
albedo_texture = ExtResource("2_cxio0")
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_6qu7a"]
albedo_texture = ExtResource("3_re2y4")
[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)
shape = SubResource("BoxShape3D_6js7j")
[node name="BoxCSGBox" type="CSGBox3D" parent="BoxRigidBody3D/BoxCollisionShapeBox"]
material_override = SubResource("StandardMaterial3D_dsxvl")
material = SubResource("StandardMaterial3D_6qu7a")
[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"]