Level Setup
Integrated with Trenchbroom
This commit is contained in:
@@ -56,7 +56,6 @@ func update_camera_rotation(input: Vector2) -> void:
|
||||
|
||||
rotation.z = 0.0
|
||||
|
||||
|
||||
func update_camera_height(delta: float, direction: int) -> void:
|
||||
if position.y >= crouch_offset and position.y <= DEFAULT_HEIGHT:
|
||||
position.y = clampf(position.y + (crouch_speed * direction) * delta, crouch_offset, DEFAULT_HEIGHT)
|
||||
|
||||
Reference in New Issue
Block a user