123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166 |
- [gd_scene load_steps=15 format=3 uid="uid://dgh5drb4q81kh"]
- [ext_resource type="Script" uid="uid://cx8vo58lobtgu" path="res://utils/camera_orbit.gd" id="1"]
- [ext_resource type="Script" uid="uid://uo2swke2y6v8" path="res://tests/functional/test_moving_platform.gd" id="2"]
- [ext_resource type="PackedScene" uid="uid://b1ihqm3x8jru" path="res://tests/test_options.tscn" id="3"]
- [ext_resource type="Script" uid="uid://ckob04lrcf4w" path="res://utils/characterbody_physics.gd" id="4"]
- [sub_resource type="CapsuleShape3D" id="1"]
- radius = 0.3
- [sub_resource type="BoxShape3D" id="2"]
- size = Vector3(0.6, 1.6, 0.6)
- [sub_resource type="CylinderShape3D" id="3"]
- height = 1.60005
- radius = 0.3
- [sub_resource type="SphereShape3D" id="4"]
- radius = 0.79945
- [sub_resource type="ConvexPolygonShape3D" id="5"]
- points = PackedVector3Array(-0.7, 0, -0.7, -0.3, 0, 0.8, 0.8, 0, -0.3, 0, -0.8, 0)
- [sub_resource type="PhysicsMaterial" id="7"]
- [sub_resource type="BoxShape3D" id="8"]
- size = Vector3(4, 0.4, 2)
- [sub_resource type="Animation" id="9"]
- length = 9.0
- loop_mode = 1
- tracks/0/type = "value"
- tracks/0/imported = false
- tracks/0/enabled = true
- tracks/0/path = NodePath(".:position")
- tracks/0/interp = 2
- tracks/0/loop_wrap = true
- tracks/0/keys = {
- "times": PackedFloat32Array(0, 4.5),
- "transitions": PackedFloat32Array(1, 1),
- "update": 0,
- "values": [Vector3(-7, -4.235, 0), Vector3(7, -4.235, 0)]
- }
- [sub_resource type="Animation" id="Animation_jtts3"]
- length = 0.001
- tracks/0/type = "value"
- tracks/0/imported = false
- tracks/0/enabled = true
- tracks/0/path = NodePath(".:position")
- tracks/0/interp = 1
- tracks/0/loop_wrap = true
- tracks/0/keys = {
- "times": PackedFloat32Array(0),
- "transitions": PackedFloat32Array(1),
- "update": 0,
- "values": [Vector3(-7, -4.235, 0)]
- }
- [sub_resource type="AnimationLibrary" id="AnimationLibrary_jtts3"]
- _data = {
- &"Move": SubResource("9"),
- &"RESET": SubResource("Animation_jtts3")
- }
- [node name="Test2" type="Node3D"]
- script = ExtResource("2")
- [node name="LabelBodyType" type="Label" parent="."]
- offset_left = 14.0
- offset_top = 78.0
- offset_right = 171.0
- offset_bottom = 92.0
- text = "Body Type: "
- [node name="Options" parent="." instance=ExtResource("3")]
- offset_top = 153.0
- offset_right = 134.0
- offset_bottom = 182.0
- [node name="Bodies" type="Node3D" parent="."]
- [node name="CharacterBody3D" type="CharacterBody3D" parent="Bodies"]
- transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -7, -4.18538, 0)
- collision_layer = 2
- script = ExtResource("4")
- _stop_on_slopes = true
- use_snap = true
- [node name="Capsule" type="CollisionShape3D" parent="Bodies/CharacterBody3D"]
- transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.8, 0)
- shape = SubResource("1")
- debug_color = Color(1, 1, 0, 1)
- [node name="Box" type="CollisionShape3D" parent="Bodies/CharacterBody3D"]
- transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.8, 0)
- shape = SubResource("2")
- debug_color = Color(1, 1, 0, 1)
- [node name="Cylinder" type="CollisionShape3D" parent="Bodies/CharacterBody3D"]
- transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.8, 0)
- shape = SubResource("3")
- debug_color = Color(1, 1, 0, 1)
- [node name="Sphere" type="CollisionShape3D" parent="Bodies/CharacterBody3D"]
- transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.8, 0)
- shape = SubResource("4")
- debug_color = Color(1, 1, 0, 1)
- [node name="Convex" type="CollisionShape3D" parent="Bodies/CharacterBody3D"]
- transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.8, 0)
- shape = SubResource("5")
- debug_color = Color(1, 1, 0, 1)
- [node name="RigidBody" type="RigidBody3D" parent="Bodies"]
- transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -7, -4.18538, 0)
- collision_layer = 4
- axis_lock_angular_x = true
- axis_lock_angular_y = true
- axis_lock_angular_z = true
- physics_material_override = SubResource("7")
- [node name="Capsule" type="CollisionShape3D" parent="Bodies/RigidBody"]
- transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.8, 0)
- shape = SubResource("1")
- debug_color = Color(1, 1, 0, 1)
- [node name="Box" type="CollisionShape3D" parent="Bodies/RigidBody"]
- transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.8, 0)
- shape = SubResource("2")
- debug_color = Color(1, 1, 0, 1)
- [node name="Cylinder" type="CollisionShape3D" parent="Bodies/RigidBody"]
- transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.8, 0)
- shape = SubResource("3")
- debug_color = Color(1, 1, 0, 1)
- [node name="Sphere" type="CollisionShape3D" parent="Bodies/RigidBody"]
- transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.8, 0)
- shape = SubResource("4")
- debug_color = Color(1, 1, 0, 1)
- [node name="Convex" type="CollisionShape3D" parent="Bodies/RigidBody"]
- transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.8, 0)
- shape = SubResource("5")
- debug_color = Color(1, 1, 0, 1)
- [node name="Platforms" type="Node3D" parent="."]
- [node name="MovingPlatform" type="AnimatableBody3D" parent="Platforms"]
- transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -7, -4.235, 0)
- [node name="CollisionShape" type="CollisionShape3D" parent="Platforms/MovingPlatform"]
- transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.2, 0)
- shape = SubResource("8")
- debug_color = Color(0.533333, 0, 1, 1)
- [node name="AnimationPlayer" type="AnimationPlayer" parent="Platforms/MovingPlatform"]
- libraries = {
- &"": SubResource("AnimationLibrary_jtts3")
- }
- [node name="Camera3D" type="Camera3D" parent="."]
- transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 10)
- current = true
- script = ExtResource("1")
|