-
Notifications
You must be signed in to change notification settings - Fork 0
/
RigidVsKine.tscn
54 lines (36 loc) · 1.71 KB
/
RigidVsKine.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
[gd_scene load_steps=7 format=2]
[ext_resource path="res://KinematicBody.gd" type="Script" id=1]
[sub_resource type="BoxShape" id=1]
extents = Vector3( 10, 1, 10 )
[sub_resource type="PlaneMesh" id=2]
size = Vector2( 20, 20 )
[sub_resource type="SphereMesh" id=3]
[sub_resource type="SpatialMaterial" id=5]
albedo_color = Color( 0.976471, 0.262745, 0.129412, 1 )
[sub_resource type="SphereShape" id=4]
[node name="Spatial" type="Spatial"]
[node name="StaticBody" type="StaticBody" parent="."]
[node name="CollisionShape" type="CollisionShape" parent="StaticBody"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1, 0 )
shape = SubResource( 1 )
[node name="CSGMesh" type="CSGMesh" parent="StaticBody"]
mesh = SubResource( 2 )
[node name="KinematicBody" type="KinematicBody" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 4, 10, 0 )
motion/sync_to_physics = true
script = ExtResource( 1 )
[node name="MeshInstance" type="MeshInstance" parent="KinematicBody"]
mesh = SubResource( 3 )
material/0 = SubResource( 5 )
[node name="CollisionShape" type="CollisionShape" parent="KinematicBody"]
shape = SubResource( 4 )
[node name="RigidBody" type="RigidBody" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 10, 0 )
[node name="MeshInstance" type="MeshInstance" parent="RigidBody"]
mesh = SubResource( 3 )
material/0 = null
[node name="CollisionShape" type="CollisionShape" parent="RigidBody"]
shape = SubResource( 4 )
[node name="Camera" type="Camera" parent="."]
transform = Transform( -0.371133, 0.246465, -0.895274, 0.00235786, 0.96438, 0.264512, 0.928577, 0.0960582, -0.358495, -13.36, 8.37197, -8.35316 )
[connection signal="ready" from="KinematicBody" to="RigidBody" method="_on_KinematicBody_ready"]