-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdemo.tscn
104 lines (71 loc) · 4.15 KB
/
demo.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
[gd_scene load_steps=17 format=3 uid="uid://r645y7n3n02d"]
[ext_resource type="Script" path="res://addons/raycast_hitbox/src/3d/demo/controller3d.gd" id="1_484nq"]
[ext_resource type="PackedScene" uid="uid://biap16q7fwd2c" path="res://addons/raycast_hitbox/src/3d/demo/camera.tscn" id="2_saehw"]
[ext_resource type="Script" path="res://addons/raycast_hitbox/src/3d/scripts/raycast_hit_point_3d.gd" id="3_8bfo1"]
[ext_resource type="Script" path="res://addons/raycast_hitbox/src/3d/scripts/raycast_hit_detector_3d.gd" id="4_frjem"]
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_iwsaq"]
[sub_resource type="CapsuleMesh" id="CapsuleMesh_4o76e"]
[sub_resource type="SphereShape3D" id="SphereShape3D_ns11h"]
radius = 0.05
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ckrfd"]
[sub_resource type="SphereMesh" id="SphereMesh_f8r65"]
material = SubResource("StandardMaterial3D_ckrfd")
radius = 0.05
height = 0.1
[sub_resource type="BoxShape3D" id="BoxShape3D_r0aak"]
size = Vector3(30, 0.1, 30)
[sub_resource type="BoxMesh" id="BoxMesh_arboh"]
size = Vector3(30, 0.1, 30)
[sub_resource type="Environment" id="Environment_mgouu"]
[sub_resource type="BoxShape3D" id="BoxShape3D_lvexg"]
[sub_resource type="BoxMesh" id="BoxMesh_yig2g"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_vx34p"]
[sub_resource type="ImmediateMesh" id="ImmediateMesh_hxn8k"]
[node name="Demo" type="Node3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0122728, 0, 0.00614452)
[node name="CharacterBody3D" type="CharacterBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.1441, 1.1064, 0)
script = ExtResource("1_484nq")
[node name="OverShoulderCamera" parent="CharacterBody3D" instance=ExtResource("2_saehw")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.2161, 0)
[node name="CollisionShape3D" type="CollisionShape3D" parent="CharacterBody3D"]
shape = SubResource("CapsuleShape3D_iwsaq")
[node name="MeshInstance3D" type="MeshInstance3D" parent="CharacterBody3D"]
mesh = SubResource("CapsuleMesh_4o76e")
[node name="StaticBody3D" type="StaticBody3D" parent="CharacterBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.246891, 2.74364)
collision_layer = 0
collision_mask = 0
[node name="CollisionShape3D" type="CollisionShape3D" parent="CharacterBody3D/StaticBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.557681, 1.74928)
shape = SubResource("SphereShape3D_ns11h")
[node name="Orb" type="MeshInstance3D" parent="CharacterBody3D/StaticBody3D"]
mesh = SubResource("SphereMesh_f8r65")
skeleton = NodePath("../../..")
[node name="RayCastHitPoint3" type="Node3D" parent="CharacterBody3D/StaticBody3D/Orb"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.00677872)
script = ExtResource("3_8bfo1")
[node name="RayCastHitDetector" type="Node3D" parent="CharacterBody3D" node_paths=PackedStringArray("hit_points")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.246891, 2.74364)
script = ExtResource("4_frjem")
debug_draw = true
hit_points = [NodePath("../StaticBody3D/Orb/RayCastHitPoint3")]
[node name="Level" type="Node3D" parent="."]
[node name="Floor" type="StaticBody3D" parent="Level"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="Level/Floor"]
shape = SubResource("BoxShape3D_r0aak")
[node name="MeshInstance3D" type="MeshInstance3D" parent="Level/Floor"]
mesh = SubResource("BoxMesh_arboh")
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_mgouu")
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="WorldEnvironment"]
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 1000, 0)
[node name="StaticBody3D" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.06825, 1.6531, 1.38182)
[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D"]
shape = SubResource("BoxShape3D_lvexg")
[node name="MeshInstance3D" type="MeshInstance3D" parent="StaticBody3D"]
mesh = SubResource("BoxMesh_yig2g")
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
material_override = SubResource("StandardMaterial3D_vx34p")
mesh = SubResource("ImmediateMesh_hxn8k")