[gd_scene load_steps=5 format=2]
|
|
|
|
[ext_resource path="res://scripts/objective.gd" type="Script" id=1]
|
|
|
|
[sub_resource type="BoxShape" id=1]
|
|
|
|
extents = Vector3( 7, 0.25, 7 )
|
|
|
|
[sub_resource type="CubeMesh" id=2]
|
|
|
|
size = Vector3( 14, 0.5, 14 )
|
|
subdivide_width = 0
|
|
subdivide_height = 0
|
|
subdivide_depth = 0
|
|
|
|
[sub_resource type="CapsuleShape" id=3]
|
|
|
|
radius = 0.5
|
|
height = 14.0
|
|
|
|
[node name="FullObjective" type="Spatial" index="0"]
|
|
|
|
[node name="Objective" type="RigidBody" parent="." index="0"]
|
|
|
|
input_ray_pickable = true
|
|
input_capture_on_drag = false
|
|
collision_layer = 1
|
|
collision_mask = 2
|
|
mode = 0
|
|
mass = 1000.0
|
|
friction = 1.0
|
|
bounce = 0.0
|
|
gravity_scale = 1.0
|
|
custom_integrator = false
|
|
continuous_cd = true
|
|
contacts_reported = 8
|
|
contact_monitor = true
|
|
sleeping = false
|
|
can_sleep = true
|
|
axis_lock_linear_x = false
|
|
axis_lock_linear_y = false
|
|
axis_lock_linear_z = false
|
|
axis_lock_angular_x = false
|
|
axis_lock_angular_y = false
|
|
axis_lock_angular_z = false
|
|
linear_velocity = Vector3( 0, 0, 0 )
|
|
linear_damp = -1.0
|
|
angular_velocity = Vector3( 0, 0, 0 )
|
|
angular_damp = -1.0
|
|
script = ExtResource( 1 )
|
|
_sections_unfolded = [ "Axis Lock", "Collision", "Linear", "Transform", "Visibility" ]
|
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="Objective" index="0"]
|
|
|
|
shape = SubResource( 1 )
|
|
disabled = false
|
|
_sections_unfolded = [ "Transform" ]
|
|
|
|
[node name="MeshInstance5" type="MeshInstance" parent="Objective/CollisionShape" index="0"]
|
|
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.274852 )
|
|
layers = 1
|
|
material_override = null
|
|
cast_shadow = 1
|
|
extra_cull_margin = 0.0
|
|
use_in_baked_light = false
|
|
lod_min_distance = 0.0
|
|
lod_min_hysteresis = 0.0
|
|
lod_max_distance = 0.0
|
|
lod_max_hysteresis = 0.0
|
|
mesh = SubResource( 2 )
|
|
skeleton = NodePath("..")
|
|
material/0 = null
|
|
_sections_unfolded = [ "Transform" ]
|
|
|
|
[node name="HingeJoint" type="HingeJoint" parent="." index="1"]
|
|
|
|
transform = Transform( -1.62921e-07, 0, 1, 0, 1, 0, -1, 0, -1.62921e-07, 0, -0.25, 0 )
|
|
nodes/node_a = NodePath("../Objective")
|
|
nodes/node_b = NodePath("../Rod")
|
|
solver/priority = 1
|
|
collision/exclude_nodes = true
|
|
params/bias = 0.3
|
|
angular_limit/enable = false
|
|
angular_limit/upper = 90.0
|
|
angular_limit/lower = -90.0
|
|
angular_limit/bias = 0.3
|
|
angular_limit/softness = 0.9
|
|
angular_limit/relaxation = 1.0
|
|
motor/enable = false
|
|
motor/target_velocity = 1.0
|
|
motor/max_impulse = 1.0
|
|
_sections_unfolded = [ "Transform", "Visibility", "angular_limit", "collision", "motor", "nodes", "params", "solver" ]
|
|
|
|
[node name="Rod" type="StaticBody" parent="." index="2"]
|
|
|
|
transform = Transform( -1.62921e-07, 0, 1, 0, 1, 0, -1, 0, -1.62921e-07, 0, -0.75, 0 )
|
|
input_ray_pickable = true
|
|
input_capture_on_drag = false
|
|
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 )
|
|
_sections_unfolded = [ "Collision", "Transform" ]
|
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="Rod" index="0"]
|
|
|
|
shape = SubResource( 3 )
|
|
disabled = false
|
|
_sections_unfolded = [ "Transform", "Visibility" ]
|
|
|
|
[node name="HUD" type="Control" parent="." index="3"]
|
|
|
|
anchor_left = 0.5
|
|
anchor_top = 0.0
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.0
|
|
margin_left = -20.0
|
|
margin_right = 20.0
|
|
margin_bottom = 40.0
|
|
rect_pivot_offset = Vector2( 0, 0 )
|
|
mouse_filter = 0
|
|
mouse_default_cursor_shape = 0
|
|
size_flags_horizontal = 1
|
|
size_flags_vertical = 1
|
|
|
|
[node name="LeftTeam" type="Label" parent="HUD" index="0"]
|
|
|
|
anchor_left = 0.5
|
|
anchor_top = 0.0
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.0
|
|
margin_left = -44.0
|
|
margin_top = 32.0
|
|
margin_right = -4.0
|
|
margin_bottom = 63.0
|
|
rect_pivot_offset = Vector2( 0, 0 )
|
|
mouse_filter = 2
|
|
mouse_default_cursor_shape = 0
|
|
size_flags_horizontal = 1
|
|
size_flags_vertical = 4
|
|
text = "0%"
|
|
percent_visible = 1.0
|
|
lines_skipped = 0
|
|
max_lines_visible = -1
|
|
_sections_unfolded = [ "Theme" ]
|
|
|
|
[node name="RightTeam" type="Label" parent="HUD" index="1"]
|
|
|
|
anchor_left = 0.5
|
|
anchor_top = 0.0
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.0
|
|
margin_left = 32.0
|
|
margin_top = 30.0
|
|
margin_right = 72.0
|
|
margin_bottom = 44.0
|
|
rect_pivot_offset = Vector2( 0, 0 )
|
|
mouse_filter = 2
|
|
mouse_default_cursor_shape = 0
|
|
size_flags_horizontal = 1
|
|
size_flags_vertical = 4
|
|
text = "0%"
|
|
percent_visible = 1.0
|
|
lines_skipped = 0
|
|
max_lines_visible = -1
|
|
|
|
[node name="Finish" type="Label" parent="HUD" index="2"]
|
|
|
|
anchor_left = 0.5
|
|
anchor_top = 0.0
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.0
|
|
margin_left = -14.0
|
|
margin_top = 83.0
|
|
margin_right = 26.0
|
|
margin_bottom = 97.0
|
|
rect_pivot_offset = Vector2( 0, 0 )
|
|
mouse_filter = 2
|
|
mouse_default_cursor_shape = 0
|
|
size_flags_horizontal = 1
|
|
size_flags_vertical = 4
|
|
percent_visible = 1.0
|
|
lines_skipped = 0
|
|
max_lines_visible = -1
|
|
|
|
|