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
|
[gd_scene load_steps=4 format=2]
[ext_resource path="res://mesh/cube.dae" type="PackedScene" id=1]
[ext_resource path="res://scripts/cube.gd" type="Script" id=2]
[sub_resource type="ConvexPolygonShape" id=1]
points = PoolVector3Array( 1, -1, -0.999512, 1, -1, 1, -1, -1, 0.999512, -0.999512, -1, -1, 1, 1, -0.999512, -0.999512, 1, -1, -1, 1, 0.999512, 0.999512, 1, 1, 1, -1, -0.999512, 1, 1, -0.999512, 0.999512, 1, 1, 1, -1, 1, 1, -1, 1, 0.999512, 1, 1, -1, 1, 0.999512, -1, -1, 0.999512, -1, -1, 0.999512, -1, 1, 0.999512, -0.999512, 1, -1, -0.999512, -1, -1, 1, 1, -0.999512, 1, -1, -0.999512, -0.999512, -1, -1, -0.999512, 1, -1 )
[node name="Scene Root" instance=ExtResource( 1 )]
script = ExtResource( 2 )
[node name="Cube" parent="."]
use_in_baked_light = false
material/0 = null
[node name="StaticBody" type="StaticBody" parent="Cube"]
input_ray_pickable = true
input_capture_on_drag = false
shape_count = 1
shapes/0/shape = SubResource( 1 )
shapes/0/transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )
shapes/0/trigger = true
collision_layer = 1
collision_mask = 1
friction = 1.0
bounce = 0.0
constant_linear_velocity = Vector3( 0, 0, 0 )
constant_angular_velocity = Vector3( 0, 0, 0 )
[node name="CollisionShape" type="CollisionShape" parent="Cube/StaticBody"]
shape = SubResource( 1 )
trigger = true
_update_shape_index = 0
[connection signal="input_event" from="Cube/StaticBody" to="." method="_input_event"]
|