Object parenting; Ship module prototype; Use 64 bit

This commit is contained in:
Aslan 2026-01-24 23:05:19 -05:00
parent 3f97e18615
commit 8335714acc
30 changed files with 436 additions and 62 deletions

View file

@ -0,0 +1,46 @@
[gd_scene format=3 uid="uid://btspomjpmaeix"]
[ext_resource type="Script" uid="uid://cy8nuarxbnd" path="res://scripts/GravityZone.cs" id="1_cp5qc"]
[ext_resource type="Script" uid="uid://d4naw4kwsaxgi" path="res://scripts/VesselModuleNode.cs" id="1_hmual"]
[sub_resource type="CylinderMesh" id="CylinderMesh_cp5qc"]
top_radius = 5.0
bottom_radius = 5.0
height = 0.3
[sub_resource type="CylinderShape3D" id="CylinderShape3D_8km7m"]
height = 0.3
radius = 5.0
[sub_resource type="CylinderShape3D" id="CylinderShape3D_ok5mh"]
height = 3.0
radius = 5.0
[node name="TestModuleBridge" type="StaticBody3D" unique_id=734366198]
script = ExtResource("1_hmual")
[node name="Mesh1" type="MeshInstance3D" parent="." unique_id=1213452774]
mesh = SubResource("CylinderMesh_cp5qc")
[node name="Collider1" type="CollisionShape3D" parent="." unique_id=379931522]
shape = SubResource("CylinderShape3D_8km7m")
[node name="GravityZone" type="Area3D" parent="." unique_id=431050752]
gravity_space_override = 2
script = ExtResource("1_cp5qc")
[node name="CollisionShape3D" type="CollisionShape3D" parent="GravityZone" unique_id=1904473317]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.5, 0)
shape = SubResource("CylinderShape3D_ok5mh")
[node name="TestModuleBridge_AnchorBack" type="Node3D" parent="." unique_id=1526898268]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -5)
[node name="TestModuleBridge_AnchorLeft" type="Node3D" parent="." unique_id=1699158457]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5, 0, 0)
[node name="TestModuleBridge_AnchorRight" type="Node3D" parent="." unique_id=742563404]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -5, 0, 0)
[connection signal="body_entered" from="GravityZone" to="GravityZone" method="OnBodyEntered"]
[connection signal="body_exited" from="GravityZone" to="GravityZone" method="OnBodyExited"]

View file

@ -0,0 +1,53 @@
[gd_scene format=3 uid="uid://xpja3is7guc1"]
[ext_resource type="Script" uid="uid://cy8nuarxbnd" path="res://scripts/GravityZone.cs" id="1_02ngc"]
[ext_resource type="Script" uid="uid://d4naw4kwsaxgi" path="res://scripts/VesselModuleNode.cs" id="1_xo7v4"]
[sub_resource type="BoxMesh" id="BoxMesh_on55t"]
size = Vector3(1, 0.3, 1)
[sub_resource type="BoxShape3D" id="BoxShape3D_l471i"]
size = Vector3(1, 0.3, 1)
[sub_resource type="BoxMesh" id="BoxMesh_fyq5x"]
size = Vector3(3, 0.3, 5)
[sub_resource type="BoxShape3D" id="BoxShape3D_fyol8"]
size = Vector3(3, 0.3, 5)
[sub_resource type="BoxShape3D" id="BoxShape3D_fyq5x"]
size = Vector3(3, 3, 6)
[node name="TestModuleCombined" type="StaticBody3D" unique_id=1980918964]
script = ExtResource("1_xo7v4")
[node name="Mesh1" type="MeshInstance3D" parent="." unique_id=1213452774]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 2)
mesh = SubResource("BoxMesh_on55t")
[node name="Collider1" type="CollisionShape3D" parent="." unique_id=379931522]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 2)
shape = SubResource("BoxShape3D_l471i")
[node name="Mesh2" type="MeshInstance3D" parent="." unique_id=731042680]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -1)
mesh = SubResource("BoxMesh_fyq5x")
[node name="Collider2" type="CollisionShape3D" parent="." unique_id=1953709166]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -1)
shape = SubResource("BoxShape3D_fyol8")
[node name="GravityZone" type="Area3D" parent="." unique_id=431050752]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -1)
gravity_space_override = 2
script = ExtResource("1_02ngc")
[node name="CollisionShape3D" type="CollisionShape3D" parent="GravityZone" unique_id=1904473317]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.5, 0.5)
shape = SubResource("BoxShape3D_fyq5x")
[node name="TestModuleCombined_AnchorFront" type="Node3D" parent="." unique_id=1191422945]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 2.5)
[connection signal="body_entered" from="GravityZone" to="GravityZone" method="OnBodyEntered"]
[connection signal="body_exited" from="GravityZone" to="GravityZone" method="OnBodyExited"]

View file

@ -0,0 +1,29 @@
[gd_scene format=3 uid="uid://dbi3g3j5txjwh"]
[ext_resource type="Script" uid="uid://d4naw4kwsaxgi" path="res://scripts/VesselModuleNode.cs" id="1_op0d6"]
[sub_resource type="CylinderMesh" id="CylinderMesh_d1o6a"]
top_radius = 1.0
bottom_radius = 1.0
height = 5.0
[sub_resource type="CylinderShape3D" id="CylinderShape3D_g1n3o"]
height = 5.0
radius = 1.0
[node name="TestModuleEngine" type="StaticBody3D" unique_id=734366198]
script = ExtResource("1_op0d6")
[node name="Mesh1" type="MeshInstance3D" parent="." unique_id=1213452774]
transform = Transform3D(3.749399456654644e-33, -6.123233995736766e-17, -1, 1, 6.123233995736766e-17, 0, 6.123233995736766e-17, -1, 6.123233995736766e-17, 0, 0, 0)
mesh = SubResource("CylinderMesh_d1o6a")
[node name="Collider1" type="CollisionShape3D" parent="." unique_id=379931522]
transform = Transform3D(3.749399456654644e-33, -6.123233995736766e-17, -1, 1, 6.123233995736766e-17, 0, 6.123233995736766e-17, -1, 6.123233995736766e-17, 0, 0, 0)
shape = SubResource("CylinderShape3D_g1n3o")
[node name="TestModuleEngine_AnchorLeft" type="Node3D" parent="." unique_id=1526898268]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0)
[node name="TestModuleEngine_AnchorRight" type="Node3D" parent="." unique_id=1761527145]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1, 0, 0)