mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-06 16:00:08 +01:00
74 lines
3.0 KiB
Plaintext
74 lines
3.0 KiB
Plaintext
[gd_scene load_steps=10 format=3 uid="uid://ctthwalakbumy"]
|
|
|
|
[ext_resource type="Script" uid="uid://bhuffdqqokuft" path="res://utils/rigidbody_pick.gd" id="1"]
|
|
[ext_resource type="Script" uid="uid://blogug2xde5uy" path="res://test.gd" id="2"]
|
|
[ext_resource type="Script" uid="uid://bgcnf7ewyhig2" path="res://utils/camera_orbit.gd" id="4"]
|
|
[ext_resource type="PackedScene" uid="uid://bu0pj5w6euynk" path="res://tests/static_scene.tscn" id="6"]
|
|
|
|
[sub_resource type="BoxShape3D" id="1"]
|
|
|
|
[sub_resource type="CapsuleShape3D" id="2"]
|
|
|
|
[sub_resource type="CylinderShape3D" id="3"]
|
|
|
|
[sub_resource type="ConvexPolygonShape3D" id="4"]
|
|
points = PackedVector3Array(-0.7, 0, -0.7, -0.3, 0, 0.8, 0.8, 0, -0.3, 0, -1, 0)
|
|
|
|
[sub_resource type="SphereShape3D" id="5"]
|
|
|
|
[node name="Test" type="Node3D"]
|
|
script = ExtResource("2")
|
|
|
|
[node name="DynamicShapes" type="Node3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 9.35591, 0)
|
|
|
|
[node name="RigidBodyBox" type="RigidBody3D" parent="DynamicShapes"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -6, 0, 0)
|
|
script = ExtResource("1")
|
|
|
|
[node name="CollisionShape" type="CollisionShape3D" parent="DynamicShapes/RigidBodyBox"]
|
|
transform = Transform3D(0.579556, 0.0885213, 0.145926, 0, 0.939693, -0.205212, -0.155291, 0.330366, 0.544604, 0, 0, 0)
|
|
shape = SubResource("1")
|
|
debug_color = Color(1, 1, 0, 1)
|
|
|
|
[node name="RigidBodyCapsule" type="RigidBody3D" parent="DynamicShapes"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3, 0, 0)
|
|
script = ExtResource("1")
|
|
|
|
[node name="CollisionShape" type="CollisionShape3D" parent="DynamicShapes/RigidBodyCapsule"]
|
|
transform = Transform3D(0.8, 0, 0, 0, 0.8, 0, 0, 0, 0.8, 0, 0, 0)
|
|
shape = SubResource("2")
|
|
debug_color = Color(1, 1, 0, 1)
|
|
|
|
[node name="RigidBodyCylinder" type="RigidBody3D" parent="DynamicShapes"]
|
|
script = ExtResource("1")
|
|
|
|
[node name="CollisionShape" type="CollisionShape3D" parent="DynamicShapes/RigidBodyCylinder"]
|
|
transform = Transform3D(0.772741, -0.258819, 2.59821e-08, 0.2, 0.933013, -0.207055, 0.0535898, 0.25, 0.772741, 0, 0, 0)
|
|
shape = SubResource("3")
|
|
debug_color = Color(1, 1, 0, 1)
|
|
|
|
[node name="RigidBodyConvex" type="RigidBody3D" parent="DynamicShapes"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3, 0, 0)
|
|
script = ExtResource("1")
|
|
|
|
[node name="CollisionShape" type="CollisionShape3D" parent="DynamicShapes/RigidBodyConvex"]
|
|
transform = Transform3D(1.5, 0, 0, 0, 1.93185, -0.388229, 0, 0.517638, 1.44889, 0, 0, 0)
|
|
shape = SubResource("4")
|
|
debug_color = Color(1, 1, 0, 1)
|
|
|
|
[node name="RigidBodySphere" type="RigidBody3D" parent="DynamicShapes"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 0)
|
|
script = ExtResource("1")
|
|
|
|
[node name="CollisionShape" type="CollisionShape3D" parent="DynamicShapes/RigidBodySphere"]
|
|
transform = Transform3D(0.8, 0, 0, 0, 0.8, 0, 0, 0, 0.8, 0, 0, 0)
|
|
shape = SubResource("5")
|
|
debug_color = Color(1, 1, 0, 1)
|
|
|
|
[node name="StaticScene" parent="." instance=ExtResource("6")]
|
|
|
|
[node name="Camera3D" type="Camera3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4.53602, 22.1236)
|
|
script = ExtResource("4")
|