Skip to content

Commit

Permalink
updated crouch and crawl animations for the new fps pivot point
Browse files Browse the repository at this point in the history
  • Loading branch information
ninetailsrabbit committed Dec 27, 2024
1 parent eaf8083 commit 0016ceb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ tracks/0/path = NodePath("CeilShapeCast:target_position")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.166667),
"times": PackedFloat32Array(0, 0.2),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector3(0, 0.1, 0), Vector3(0, -0.3, 0)]
"values": [Vector3(0, 0.15, 0), Vector3(0, -0.3, 0)]
}
tracks/1/type = "value"
tracks/1/imported = false
Expand All @@ -75,10 +75,10 @@ tracks/1/path = NodePath("CameraController:position")
tracks/1/interp = 2
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.166667),
"times": PackedFloat32Array(0, 0.2),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector3(0, 0.1, 0), Vector3(0, -0.1, 0)]
"values": [Vector3(0, 1, 0), Vector3(0, 0.3, 0)]
}

[sub_resource type="Animation" id="Animation_uc3uk"]
Expand All @@ -94,7 +94,7 @@ tracks/0/keys = {
"times": PackedFloat32Array(0, 0.2),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector3(0, 0.65, 0), Vector3(0, 0.1, 0)]
"values": [Vector3(0, 0.65, 0), Vector3(0, 0.15, 0)]
}
tracks/1/type = "value"
tracks/1/imported = false
Expand All @@ -106,7 +106,7 @@ tracks/1/keys = {
"times": PackedFloat32Array(0, 0.2),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector3(0, 0.75, 0), Vector3(0, 0.1, 0)]
"values": [Vector3(0, 1.75, 0), Vector3(0, 1, 0)]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_8y2xj"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ func _unhandled_input(event: InputEvent) -> void:
func _ready() -> void:
assert(actor is Node3D, "CameraController: actor Node3D is not set, this camera controller needs a reference to apply the camera movement")


current_horizontal_limit = camera_horizontal_limit
current_vertical_limit = camera_vertical_limit
original_camera_rotation = camera.rotation
Expand Down

0 comments on commit 0016ceb

Please sign in to comment.