-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSpatial.tscn
More file actions
44 lines (30 loc) · 1.35 KB
/
Spatial.tscn
File metadata and controls
44 lines (30 loc) · 1.35 KB
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
[gd_scene load_steps=6 format=2]
[sub_resource type="GDScript" id=3]
script/source = "extends StaticBody
func _on_StaticBody_input_event(camera, event, position, normal, shape_idx):
if event is InputEventMouseMotion:
get_node(\"../MeshInstance2\").translation = position
"
[sub_resource type="PlaneMesh" id=1]
[sub_resource type="BoxShape" id=2]
extents = Vector3( 1, 0.0102573, 1 )
[sub_resource type="CubeMesh" id=4]
[sub_resource type="SpatialMaterial" id=5]
albedo_color = Color( 1, 0, 0, 1 )
[node name="Spatial" type="Spatial"]
[node name="StaticBody" type="StaticBody" parent="."]
transform = Transform( 2.51871, 0, 0, 0, 2.51871, 0, 0, 0, 2.51871, 0, 0, 0 )
script = SubResource( 3 )
[node name="MeshInstance" type="MeshInstance" parent="StaticBody"]
mesh = SubResource( 1 )
skeleton = NodePath("../..")
material/0 = null
[node name="CollisionShape" type="CollisionShape" parent="StaticBody"]
shape = SubResource( 2 )
[node name="MeshInstance2" type="MeshInstance" parent="."]
transform = Transform( 0.422921, 0, 0, 0, 0.422921, 0, 0, 0, 0.422921, 0, 0, 0 )
mesh = SubResource( 4 )
material/0 = SubResource( 5 )
[node name="Camera" type="Camera" parent="."]
transform = Transform( 1, 0, 0, 0, 0.914678, 0.404184, 0, -0.404184, 0.914678, 0, 2.86629, 4.4128 )
[connection signal="input_event" from="StaticBody" to="StaticBody" method="_on_StaticBody_input_event"]