[gd_scene load_steps=10 format=3 uid="uid://dvueb8v1addy"] [ext_resource type="Script" path="res://scripts/Pawn.gd" id="1_j0tk8"] [sub_resource type="CapsuleShape3D" id="CapsuleShape3D_ed37x"] radius = 0.4 height = 1.2 [sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_7oc35"] animation = &"Idle" [sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_ejxs0"] animation = &"Run" [sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_io5dv"] xfade_time = 0.5 advance_mode = 2 [sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_8mv0f"] xfade_time = 0.2 [sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_dco30"] xfade_time = 0.2 [sub_resource type="AnimationNodeStateMachine" id="AnimationNodeStateMachine_114aq"] states/Idle/node = SubResource("AnimationNodeAnimation_7oc35") states/Idle/position = Vector2(333, 68) states/Run/node = SubResource("AnimationNodeAnimation_ejxs0") states/Run/position = Vector2(458, 131) transitions = ["Start", "Idle", SubResource("AnimationNodeStateMachineTransition_io5dv"), "Idle", "Run", SubResource("AnimationNodeStateMachineTransition_8mv0f"), "Run", "Idle", SubResource("AnimationNodeStateMachineTransition_dco30")] graph_offset = Vector2(126.972, 0) [sub_resource type="AnimationNodeStateMachinePlayback" id="AnimationNodeStateMachinePlayback_am7fm"] [node name="Instance3D" type="CharacterBody3D"] script = ExtResource("1_j0tk8") [node name="Pivot" type="Node3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.0473186, 0) [node name="CollisionShape3D" type="CollisionShape3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.6, 0) shape = SubResource("CapsuleShape3D_ed37x") [node name="RayCast3D" type="RayCast3D" parent="."] transform = Transform3D(1, 0, 0, 0, 20, 0, 0, 0, 1, 0, 10, 0) collision_mask = 128 [node name="AnimationTree" type="AnimationTree" parent="."] tree_root = SubResource("AnimationNodeStateMachine_114aq") parameters/playback = SubResource("AnimationNodeStateMachinePlayback_am7fm")