-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
HingeTest.tscn
57 lines (40 loc) · 1.75 KB
/
HingeTest.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
[gd_scene load_steps=8 format=2]
[ext_resource path="res://HingeTest.gd" type="Script" id=1]
[ext_resource path="res://mat_test.tres" type="Material" id=2]
[sub_resource type="CubeMesh" id=1]
size = Vector3( 1, 1, 1 )
[sub_resource type="BoxShape" id=2]
extents = Vector3( 0.5, 0.5, 0.5 )
[sub_resource type="SphereMesh" id=3]
material = ExtResource( 2 )
[sub_resource type="SphereShape" id=4]
[sub_resource type="PlaneMesh" id=5]
size = Vector2( 40, 40 )
[node name="HingeTest" type="Spatial"]
script = ExtResource( 1 )
[node name="HingeJoint" type="HingeJoint" parent="."]
transform = Transform( 1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0 )
nodes/node_a = NodePath("../StaticBody")
nodes/node_b = NodePath("../RigidBody")
motor/enable = true
motor/target_velocity = -1.0
[node name="StaticBody" type="StaticBody" parent="."]
[node name="MeshInstance" type="MeshInstance" parent="StaticBody"]
mesh = SubResource( 1 )
material/0 = null
[node name="CollisionShape" type="CollisionShape" parent="StaticBody"]
shape = SubResource( 2 )
[node name="RigidBody" type="RigidBody" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.32, 4.784 )
[node name="MeshInstance2" type="MeshInstance" parent="RigidBody"]
mesh = SubResource( 3 )
material/0 = null
[node name="CollisionShape2" type="CollisionShape" parent="RigidBody"]
shape = SubResource( 4 )
[node name="Camera" type="Camera" parent="."]
transform = Transform( 1, 0, 0, 0, 0.664795, 0.747026, 0, -0.747026, 0.664795, 0, 7.23761, 9.14586 )
[node name="DirectionalLight" type="DirectionalLight" parent="."]
transform = Transform( 1, 0, 0, 0, -0.116096, 0.993238, 0, -0.993238, -0.116096, 0, 17.115, 0 )
[node name="MeshInstance" type="MeshInstance" parent="."]
mesh = SubResource( 5 )
material/0 = null