OverviewFilesCommitsIssuesDocsReleasesPeers

godot-tumble_player_demo / TPS_controller_3.3 / TPS_new_local_player.tscn

45 lines · tscn ref:
[gd_scene load_steps=7 format=2]

[ext_resource path="res://TPS_controller_3.3/TPS_core_player.tscn" type="PackedScene" id=1]
[ext_resource path="res://TPS_controller_3.3/new_player_input.gd" type="Script" id=2]
[ext_resource path="res://special_input.gd" type="Script" id=3]
[ext_resource path="res://TPS_controller_3.3/new_player_debugui.tscn" type="PackedScene" id=4]
[ext_resource path="res://TPS_controller_3.3/new_player_collisionui.tscn" type="PackedScene" id=5]

[sub_resource type="CubeMesh" id=1]
size = Vector3( 1, 1, 1 )

[node name="Player" instance=ExtResource( 1 )]

[node name="Input" type="Node" parent="." index="4"]
script = ExtResource( 2 )

[node name="Head" type="Spatial" parent="." index="5"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.5, 0 )

[node name="CamPivot" type="Spatial" parent="Head" index="0"]

[node name="ClippedCamera" type="ClippedCamera" parent="Head/CamPivot" index="0"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 2.5 )
fov = 90.0

[node name="GrappleCast" type="RayCast" parent="Head/CamPivot/ClippedCamera" index="0"]
enabled = true
cast_to = Vector3( 0, -1, -400 )

[node name="CSGMesh" type="CSGMesh" parent="Head/CamPivot/ClippedCamera/GrappleCast" index="0"]
visible = false
mesh = SubResource( 1 )

[node name="SpecialInput" type="Node" parent="." index="6"]
script = ExtResource( 3 )

[node name="DebugUI" parent="." index="7" instance=ExtResource( 4 )]

[node name="CollisionUI" parent="." index="8" instance=ExtResource( 5 )]

[connection signal="player_action_jump" from="Input" to="." method="_on_Input_player_action_jump"]
[connection signal="player_mousemotion_event" from="Input" to="." method="_on_Input_player_mousemotion_event"]
[connection signal="player_move" from="Input" to="." method="_on_Input_player_move"]
[connection signal="player_restore_origin" from="Input" to="." method="_on_Input_player_restore_origin"]