]> Untitled Git - baabarian.git/blobdiff - cube.tscn
Finished basic movement, collision, visuals
[baabarian.git] / cube.tscn
index 0976e808955d1136ff50d57fd7f33d5a4093b2ba..e72d8af82d78a4c7d86eb556266142864b9238a2 100644 (file)
--- a/cube.tscn
+++ b/cube.tscn
@@ -1,9 +1,15 @@
-[gd_scene load_steps=2 format=3 uid="uid://bx83k2u0snfjc"]
+[gd_scene load_steps=3 format=3 uid="uid://bx83k2u0snfjc"]
 
 [sub_resource type="BoxMesh" id="BoxMesh_xc3wn"]
 
 [sub_resource type="BoxMesh" id="BoxMesh_xc3wn"]
+size = Vector3(2, 2, 2)
 
 
-[node name="Cube" type="Node3D"]
+[sub_resource type="BoxShape3D" id="BoxShape3D_xc3wn"]
+size = Vector3(2, 2, 2)
+
+[node name="Cube" type="RigidBody3D"]
 
 [node name="MeshInstance3D" type="MeshInstance3D" parent="."]
 
 [node name="MeshInstance3D" type="MeshInstance3D" parent="."]
-transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
 mesh = SubResource("BoxMesh_xc3wn")
 mesh = SubResource("BoxMesh_xc3wn")
+
+[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
+shape = SubResource("BoxShape3D_xc3wn")