Files
Foppitier/scenes/physics_test.tscn
2026-08-14 18:01:56 -04:00

72 lines
3.7 KiB
Plaintext

[gd_scene format=3 uid="uid://dbgb2o2fleirc"]
[ext_resource type="Script" uid="uid://b7sj2fsybkjwp" path="res://scripts/rigid_body_3d_2.gd" id="1_bcpvd"]
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_m7226"]
sky_horizon_color = Color(0.66224277, 0.6717428, 0.6867428, 1)
ground_horizon_color = Color(0.66224277, 0.6717428, 0.6867428, 1)
[sub_resource type="Sky" id="Sky_v25gn"]
sky_material = SubResource("ProceduralSkyMaterial_m7226")
[sub_resource type="Environment" id="Environment_ea71n"]
background_mode = 2
sky = SubResource("Sky_v25gn")
glow_enabled = true
[sub_resource type="BoxMesh" id="BoxMesh_6500s"]
size = Vector3(1.8497314, 0.20263672, 0.15917969)
[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_m7226"]
points = PackedVector3Array(0.9248657, 0.101318374, 0.079589844, 0.9248657, 0.101318374, -0.079589844, -0.9248657, 0.101318374, 0.079589844, 0.9248657, -0.10131836, 0.079589844, 0.9248657, -0.10131836, -0.079589844, -0.9248657, 0.101318374, -0.079589844, -0.9248657, -0.10131836, 0.079589844, -0.9248657, -0.10131836, -0.079589844)
[sub_resource type="BoxMesh" id="BoxMesh_v25gn"]
size = Vector3(0.13375854, 1.7163696, 0.15917969)
[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_ea71n"]
points = PackedVector3Array(0.06687927, 0.8581848, 0.079589844, -0.06687927, 0.8581848, 0.079589844, 0.06687927, -0.8581848, 0.079589844, 0.06687927, 0.8581848, -0.079589844, -0.06687927, 0.8581848, -0.079589844, -0.06687927, -0.8581848, 0.079589844, 0.06687927, -0.8581848, -0.079589844, -0.06687927, -0.8581848, -0.079589844)
[node name="physics test" type="Node3D" unique_id=1333536618]
[node name="WorldEnvironment" type="WorldEnvironment" parent="." unique_id=635120337]
environment = SubResource("Environment_ea71n")
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="." unique_id=1050263882]
transform = Transform3D(-0.8660254, -0.43301278, 0.25, 0, 0.49999997, 0.86602545, -0.50000006, 0.75, -0.43301266, 0, 0, 0)
shadow_enabled = true
[node name="Camera3D" type="Camera3D" parent="." unique_id=941722894]
transform = Transform3D(1, 0, 0, 0, 0.9658625, 0.25905514, 0, -0.25905514, 0.9658625, 0, 1.4516523, 2.3242326)
[node name="RigidBody3D" type="RigidBody3D" parent="." unique_id=406856185]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.012578249, 0.8916312, 0.034165263)
mass = 30.0
[node name="MeshInstance3D" type="MeshInstance3D" parent="RigidBody3D" unique_id=484807143]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.8426755, 0.0021235347, 0.14303422)
mesh = SubResource("BoxMesh_6500s")
[node name="CollisionShape3D" type="CollisionShape3D" parent="RigidBody3D" unique_id=1333027805]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.8426755, 0.0021235347, 0.14303422)
shape = SubResource("ConvexPolygonShape3D_m7226")
[node name="RigidBody3D2" type="StaticBody3D" parent="." unique_id=1163594731]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.36118686, 0, 0)
script = ExtResource("1_bcpvd")
[node name="MeshInstance3D" type="MeshInstance3D" parent="RigidBody3D2" unique_id=1488074563]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.35461283, 0.5809505, -0.001403451)
mesh = SubResource("BoxMesh_v25gn")
[node name="CollisionShape3D" type="CollisionShape3D" parent="RigidBody3D2" unique_id=942059865]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.35461283, 0.5809505, -0.001403451)
shape = SubResource("ConvexPolygonShape3D_ea71n")
[node name="HingeJoint3D" type="HingeJoint3D" parent="RigidBody3D2" unique_id=316936172]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.36118686, 0.9570182, 0.088234305)
node_a = NodePath("..")
node_b = NodePath("../../RigidBody3D")
angular_limit/enable = true
angular_limit/upper = 0.0
angular_limit/lower = 0.0