it might be the jumping code, is there anything here that might be affecting the velocity.y?
#jumping
func jump():
if Input.is_action_just_pressed("jump") and is_on_floor():
snap_vector = Vector3.ZERO
velocity.y = jump_impulse
if Input.is_action_just_released("jump") and velocity.y > jump_impulse /2:
velocity.y = jump_impulse / 2
I donât see how; the is_action_just
tests should prevent changes except on frames where the jump button is pressed or released. That was why I was looking at snap_vector
; itâs one of the few places that actually do anything to vector
on a per-frame basis.
these are my vectors, is there anything off about them?
#Vectors
var velocity = Vector3.ZERO
var snap_vector = Vector3.ZERO
var direction = Vector3()
var gravity_vec = Vector3()
var movement = Vector3()
hexgrid
September 2, 2025, 4:25pm
24
Not that I can see; none of them should be giving you the problem youâre seeing.
idk how to check for these things man. the only thing i can start to understand is thatâs itâs a problem with the velocity
hexgrid
September 2, 2025, 4:41pm
26
Velocity is increasing by 1.0
per frame. Something in your code somewhere is causing that increase, presumably in physics_process()
or something it calls. If you want to do the brute force check for this, you can do something like:
func _check_vel_y(VEL_Y: float, debug: String) -> void:
if VEL_Y != velocity.y:
print("Velocity Y Changed %f -> %f at: %s" % [VEL_Y, velocity.y, debug])
VEL_Y = velocity.y
func _physics_process(delta):
var VEL_Y = velocity.y
var input_vector = get_input_vector()
_check_vel_y(VEL_Y, "get_input_vector()")
var direction = get_direction(input_vector)
_check_vel_y(VEL_Y, "get_direction()")
apply_movement(input_vector, direction, delta)
_check_vel_y(VEL_Y, "apply_movement()")
apply_friction(direction, delta)
_check_vel_y(VEL_Y, "apply_friction()")
apply_gravity(delta)
_check_vel_y(VEL_Y, "apply_gravity()")
update_snap_vector()
_check_vel_y(VEL_Y, "update_snap_vector()")
jump()
_check_vel_y(VEL_Y, "jump()")
climbing()
_check_vel_y(VEL_Y, "climbing()")
apply_controller_rotation()
_check_vel_y(VEL_Y, "apply_controller_rotation()")
spring_arm.rotation.x = clamp(spring_arm.rotation.x, deg2rad(-65), deg2rad(25))
_check_vel_y(VEL_Y, "clamp(spring_arm)")
velocity = move_and_slide_with_snap(velocity, snap_vector, Vector3.UP, true)
_check_vel_y(VEL_Y, "move_and_slide_with_snap()")
That should tell you what call in _physics_process()
is making the problem happen. Once you know that, you can tear out most of the debug scaffolding and narrow down on the part thatâs causing things.
My suspicion is still that move_and_slide_with_snap()
is where the change is happening, probably because of snap_vector
.
--- Debugging process started ---
Godot Engine v3.5.stable.official.991bb6ac7 - https://godotengine.org
OpenGL ES 3.0 Renderer: NVIDIA GeForce RTX 4060/PCIe/SSE2
Async. shader compilation: OFF
Gravity: -0.666667 Velocity: -0.666667
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Velocity Y Changed 0.000000 -> -0.666667 at: move_and_slide_with_snap()
Gravity: -0.666667 Velocity: -0.666667
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Gravity: -0.666667 Velocity: -0.666667
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Gravity: -0.666667 Velocity: -0.666667
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Gravity: -0.666667 Velocity: -0.666667
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667[...]
[output overflow, print less text!]
Gravity: -0.666667 Velocity: -0.666667
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Gravity: -0.666667 Velocity: -0.666667
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Gravity: -0.666667 Velocity: -0.666667
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Gravity: -0.666667 Velocity: -0.666667
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Gravity: -0.666667 Velocity: -0.666667
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Gravity: -0.666667 Velocity[...]
[output overflow, print less text!]
Gravity: -0.666667 Velocity: -0.666667
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Gravity: -0.666667 Velocity: -0.666667
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Gravity: -0.666667 Velocity: -0.666667
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Gravity: -0.666667 Velocity: -0.666667
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Gravity: -0.666667 Velocity: -0.666667
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Gravity: -0.666667 Velocity[...]
[output overflow, print less text!]
Gravity: -0.666667 Velocity: -0.666667
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Gravity: -0.666667 Velocity: -0.666667
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Gravity: -0.666667 Velocity: -0.666667
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Gravity: -0.666667 Velocity: -0.666667
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Gravity: -0.666667 Velocity: -0.666667
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Gravity: -0.666667 Velocity[...]
[output overflow, print less text!]
Gravity: -0.666667 Velocity: -0.666667
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Gravity: -0.666667 Velocity: -0.666667
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Gravity: -0.666667 Velocity: -0.666667
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Gravity: -0.666667 Velocity: -0.666667
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Gravity: -0.666667 Velocity: -0.666667
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Gravity: -0.666667 Velocity[...]
[output overflow, print less text!]
Gravity: -0.666667 Velocity: -0.666667
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Gravity: -0.666667 Velocity: -0.666667
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Gravity: -0.666667 Velocity: -0.666667
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Gravity: -0.666667 Velocity: -0.666667
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Gravity: -0.666667 Velocity: -0.666667
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Gravity: -0.666667 Velocity[...]
[output overflow, print less text!]
Gravity: -0.666667 Velocity: -0.666667
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Gravity: -0.666667 Velocity: -0.666667
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Gravity: -0.666667 Velocity: -0.666667
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Gravity: -0.666667 Velocity: -0.666667
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Gravity: -0.666667 Velocity: -0.666667
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> 20.000000 at: jump()
Velocity Y Changed 0.000000 -> 20.000000 at: climbing()
Velocity Y Changed 0.000000 -> 20.000000 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> 20.000000 at: clamp(spring_arm)
Velocity Y Changed 0.000000 [...]
[output overflow, print less text!]
Velocity Y Changed 56.000000 -> 57.000000 at: move_and_slide_with_snap()
Gravity: -0.666667 Velocity: 58.000000
Velocity Y Changed 57.000000 -> 58.000000 at: apply_gravity()
Velocity Y Changed 57.000000 -> 58.000000 at: update_snap_vector()
Velocity Y Changed 57.000000 -> 58.000000 at: jump()
Velocity Y Changed 57.000000 -> 58.000000 at: climbing()
Velocity Y Changed 57.000000 -> 58.000000 at: apply_controller_rotation()
Velocity Y Changed 57.000000 -> 58.000000 at: clamp(spring_arm)
Velocity Y Changed 57.000000 -> 58.000000 at: move_and_slide_with_snap()
Gravity: -0.666667 Velocity: 59.000000
Velocity Y Changed 58.000000 -> 59.000000 at: apply_gravity()
Velocity Y Changed 58.000000 -> 59.000000 at: update_snap_vector()
Velocity Y Changed 58.000000 -> 59.000000 at: jump()
Velocity Y Changed 58.000000 -> 59.000000 at: climbing()
Velocity Y Changed 58.000000 -> 59.000000 at: apply_controller_rotation()
Velocity Y Changed 58.000000 -> 59.000000 at: clamp(spring_arm)
Velocity Y Changed 58.000000 -> 59.000000 at: move_and_slide_with_snap()
Gravity: -0.666667 Velocity: 60.000000
Velocity Y Changed 59.000000 -> 60.000000 at: apply_gravity()
Velocity Y Changed 59.000000 -> 60.000000 at: update_snap_vector()
Velocity Y Changed 59.000000 -> 60.000000 at: jump()
Velocity Y Changed 59.000000 -> 60.000000 at: climbing()
Velocity Y Changed 59.000000 -> 60.000000 at: apply_controller_rotation()
Velocity Y Changed 59.000000 -> 60.000000 at: clamp(spring_arm)
Velocity Y Changed 59.000000 -> 60.000000 at: move_and_slide_with_snap()
Gravity: -0.666667 Velocity: 61.000000
Velocity Y Changed 60.000000 -> 61.000000 at: apply_gravity()
Velocity Y Changed 60.000000 -> 61.000000 at: update_snap_vector()
Velocity Y Changed 60.000000 -> 61.000000 at: jump()
Velocity Y Changed 60.000000 -> 61.000000 at: climbing()
Velocity Y Changed 60.000000 -> 61.000000 at: apply_controller_rotation()
Velocity Y Changed 60.000000 -> 61.000000 at: clamp(spring_arm)
Velocity Y Changed 60.000000 -> 61.000000 at: move_and_slide_with_snap()
Gravity: -0.666667 Velocity: 62.000000
Velocity [...]
[output overflow, print less text!]
Gravity: -0.666667 Velocity: 118.000000
Velocity Y Changed 117.000000 -> 118.000000 at: apply_gravity()
Velocity Y Changed 117.000000 -> 118.000000 at: update_snap_vector()
Velocity Y Changed 117.000000 -> 118.000000 at: jump()
Velocity Y Changed 117.000000 -> 118.000000 at: climbing()
Velocity Y Changed 117.000000 -> 118.000000 at: apply_controller_rotation()
Velocity Y Changed 117.000000 -> 118.000000 at: clamp(spring_arm)
Velocity Y Changed 117.000000 -> 118.000000 at: move_and_slide_with_snap()
Gravity: -0.666667 Velocity: 119.000000
Velocity Y Changed 118.000000 -> 119.000000 at: apply_gravity()
Velocity Y Changed 118.000000 -> 119.000000 at: update_snap_vector()
Velocity Y Changed 118.000000 -> 119.000000 at: jump()
Velocity Y Changed 118.000000 -> 119.000000 at: climbing()
Velocity Y Changed 118.000000 -> 119.000000 at: apply_controller_rotation()
Velocity Y Changed 118.000000 -> 119.000000 at: clamp(spring_arm)
Velocity Y Changed 118.000000 -> 119.000000 at: move_and_slide_with_snap()
Gravity: -0.666667 Velocity: 120.000000
Velocity Y Changed 119.000000 -> 120.000000 at: apply_gravity()
Velocity Y Changed 119.000000 -> 120.000000 at: update_snap_vector()
Velocity Y Changed 119.000000 -> 120.000000 at: jump()
Velocity Y Changed 119.000000 -> 120.000000 at: climbing()
Velocity Y Changed 119.000000 -> 120.000000 at: apply_controller_rotation()
Velocity Y Changed 119.000000 -> 120.000000 at: clamp(spring_arm)
Velocity Y Changed 119.000000 -> 120.000000 at: move_and_slide_with_snap()
Gravity: -0.666667 Velocity: 121.000000
Velocity Y Changed 120.000000 -> 121.000000 at: apply_gravity()
Velocity Y Changed 120.000000 -> 121.000000 at: update_snap_vector()
Velocity Y Changed 120.000000 -> 121.000000 at: jump()
Velocity Y Changed 120.000000 -> 121.000000 at: climbing()
Velocity Y Changed 120.000000 -> 121.000000 at: apply_controller_rotation()
Velocity Y Changed 120.000000 -> 121.000000 at: clamp(spring_arm)
Velocity Y Changed 120.000000 -> 121.000000 at: move_and_slide_with_snap()
Gravity: -0.666667 Velocity: 122.000000
Velocity Y Changed 1[...]
[output overflow, print less text!]
Gravity: -0.666667 Velocity: 179.000000
Velocity Y Changed 178.000000 -> 179.000000 at: apply_gravity()
Velocity Y Changed 178.000000 -> 179.000000 at: update_snap_vector()
Velocity Y Changed 178.000000 -> 179.000000 at: jump()
Velocity Y Changed 178.000000 -> 179.000000 at: climbing()
Velocity Y Changed 178.000000 -> 179.000000 at: apply_controller_rotation()
Velocity Y Changed 178.000000 -> 179.000000 at: clamp(spring_arm)
Velocity Y Changed 178.000000 -> 179.000000 at: move_and_slide_with_snap()
Gravity: -0.666667 Velocity: 180.000000
Velocity Y Changed 179.000000 -> 180.000000 at: apply_gravity()
Velocity Y Changed 179.000000 -> 180.000000 at: update_snap_vector()
Velocity Y Changed 179.000000 -> 180.000000 at: jump()
Velocity Y Changed 179.000000 -> 180.000000 at: climbing()
Velocity Y Changed 179.000000 -> 180.000000 at: apply_controller_rotation()
Velocity Y Changed 179.000000 -> 180.000000 at: clamp(spring_arm)
Velocity Y Changed 179.000000 -> 180.000000 at: move_and_slide_with_snap()
Gravity: -0.666667 Velocity: 181.000000
Velocity Y Changed 180.000000 -> 181.000000 at: apply_gravity()
Velocity Y Changed 180.000000 -> 181.000000 at: update_snap_vector()
Velocity Y Changed 180.000000 -> 181.000000 at: jump()
Velocity Y Changed 180.000000 -> 181.000000 at: climbing()
Velocity Y Changed 180.000000 -> 181.000000 at: apply_controller_rotation()
Velocity Y Changed 180.000000 -> 181.000000 at: clamp(spring_arm)
Velocity Y Changed 180.000000 -> 181.000000 at: move_and_slide_with_snap()
Gravity: -0.666667 Velocity: 182.000000
Velocity Y Changed 181.000000 -> 182.000000 at: apply_gravity()
Velocity Y Changed 181.000000 -> 182.000000 at: update_snap_vector()
Velocity Y Changed 181.000000 -> 182.000000 at: jump()
Velocity Y Changed 181.000000 -> 182.000000 at: climbing()
Velocity Y Changed 181.000000 -> 182.000000 at: apply_controller_rotation()
Velocity Y Changed 181.000000 -> 182.000000 at: clamp(spring_arm)
Velocity Y Changed 181.000000 -> 182.000000 at: move_and_slide_with_snap()
Gravity: -0.666667 Velocity: 183.000000
Velocity Y Changed 1[...]
[output overflow, print less text!]
Gravity: -0.666667 Velocity: 240.000000
Velocity Y Changed 239.000000 -> 240.000000 at: apply_gravity()
Velocity Y Changed 239.000000 -> 240.000000 at: update_snap_vector()
Velocity Y Changed 239.000000 -> 240.000000 at: jump()
Velocity Y Changed 239.000000 -> 240.000000 at: climbing()
Velocity Y Changed 239.000000 -> 240.000000 at: apply_controller_rotation()
Velocity Y Changed 239.000000 -> 240.000000 at: clamp(spring_arm)
Velocity Y Changed 239.000000 -> 240.000000 at: move_and_slide_with_snap()
Gravity: -0.666667 Velocity: 241.000000
Velocity Y Changed 240.000000 -> 241.000000 at: apply_gravity()
Velocity Y Changed 240.000000 -> 241.000000 at: update_snap_vector()
Velocity Y Changed 240.000000 -> 241.000000 at: jump()
Velocity Y Changed 240.000000 -> 241.000000 at: climbing()
Velocity Y Changed 240.000000 -> 241.000000 at: apply_controller_rotation()
Velocity Y Changed 240.000000 -> 241.000000 at: clamp(spring_arm)
Velocity Y Changed 240.000000 -> 241.000000 at: move_and_slide_with_snap()
Gravity: -0.666667 Velocity: 242.000000
Velocity Y Changed 241.000000 -> 242.000000 at: apply_gravity()
Velocity Y Changed 241.000000 -> 242.000000 at: update_snap_vector()
Velocity Y Changed 241.000000 -> 242.000000 at: jump()
Velocity Y Changed 241.000000 -> 242.000000 at: climbing()
Velocity Y Changed 241.000000 -> 242.000000 at: apply_controller_rotation()
Velocity Y Changed 241.000000 -> 242.000000 at: clamp(spring_arm)
Velocity Y Changed 241.000000 -> 242.000000 at: move_and_slide_with_snap()
Gravity: -0.666667 Velocity: 243.000000
Velocity Y Changed 242.000000 -> 243.000000 at: apply_gravity()
Velocity Y Changed 242.000000 -> 243.000000 at: update_snap_vector()
Velocity Y Changed 242.000000 -> 243.000000 at: jump()
Velocity Y Changed 242.000000 -> 243.000000 at: climbing()
Velocity Y Changed 242.000000 -> 243.000000 at: apply_controller_rotation()
Velocity Y Changed 242.000000 -> 243.000000 at: clamp(spring_arm)
Velocity Y Changed 242.000000 -> 243.000000 at: move_and_slide_with_snap()
Gravity: -0.666667 Velocity: 244.000000
Velocity Y Changed 2[...]
[output overflow, print less text!]
Gravity: -0.666667 Velocity: 301.000000
Velocity Y Changed 300.000000 -> 301.000000 at: apply_gravity()
Velocity Y Changed 300.000000 -> 301.000000 at: update_snap_vector()
Velocity Y Changed 300.000000 -> 301.000000 at: jump()
Velocity Y Changed 300.000000 -> 301.000000 at: climbing()
Velocity Y Changed 300.000000 -> 301.000000 at: apply_controller_rotation()
Velocity Y Changed 300.000000 -> 301.000000 at: clamp(spring_arm)
Velocity Y Changed 300.000000 -> 301.000000 at: move_and_slide_with_snap()
Gravity: -0.666667 Velocity: 302.000000
Velocity Y Changed 301.000000 -> 302.000000 at: apply_gravity()
Velocity Y Changed 301.000000 -> 302.000000 at: update_snap_vector()
Velocity Y Changed 301.000000 -> 302.000000 at: jump()
Velocity Y Changed 301.000000 -> 302.000000 at: climbing()
Velocity Y Changed 301.000000 -> 302.000000 at: apply_controller_rotation()
Velocity Y Changed 301.000000 -> 302.000000 at: clamp(spring_arm)
Velocity Y Changed 301.000000 -> 302.000000 at: move_and_slide_with_snap()
Gravity: -0.666667 Velocity: 303.000000
Velocity Y Changed 302.000000 -> 303.000000 at: apply_gravity()
Velocity Y Changed 302.000000 -> 303.000000 at: update_snap_vector()
Velocity Y Changed 302.000000 -> 303.000000 at: jump()
Velocity Y Changed 302.000000 -> 303.000000 at: climbing()
Velocity Y Changed 302.000000 -> 303.000000 at: apply_controller_rotation()
Velocity Y Changed 302.000000 -> 303.000000 at: clamp(spring_arm)
Velocity Y Changed 302.000000 -> 303.000000 at: move_and_slide_with_snap()
Gravity: -0.666667 Velocity: 304.000000
Velocity Y Changed 303.000000 -> 304.000000 at: apply_gravity()
Velocity Y Changed 303.000000 -> 304.000000 at: update_snap_vector()
Velocity Y Changed 303.000000 -> 304.000000 at: jump()
Velocity Y Changed 303.000000 -> 304.000000 at: climbing()
Velocity Y Changed 303.000000 -> 304.000000 at: apply_controller_rotation()
Velocity Y Changed 303.000000 -> 304.000000 at: clamp(spring_arm)
Velocity Y Changed 303.000000 -> 304.000000 at: move_and_slide_with_snap()
Gravity: -0.666667 Velocity: 305.000000
Velocity Y Changed 3[...]
[output overflow, print less text!]
Gravity: -0.666667 Velocity: 362.000000
Velocity Y Changed 361.000000 -> 362.000000 at: apply_gravity()
Velocity Y Changed 361.000000 -> 362.000000 at: update_snap_vector()
Velocity Y Changed 361.000000 -> 362.000000 at: jump()
Velocity Y Changed 361.000000 -> 362.000000 at: climbing()
Velocity Y Changed 361.000000 -> 362.000000 at: apply_controller_rotation()
Velocity Y Changed 361.000000 -> 362.000000 at: clamp(spring_arm)
Velocity Y Changed 361.000000 -> 362.000000 at: move_and_slide_with_snap()
Gravity: -0.666667 Velocity: 363.000000
Velocity Y Changed 362.000000 -> 363.000000 at: apply_gravity()
Velocity Y Changed 362.000000 -> 363.000000 at: update_snap_vector()
Velocity Y Changed 362.000000 -> 363.000000 at: jump()
Velocity Y Changed 362.000000 -> 363.000000 at: climbing()
Velocity Y Changed 362.000000 -> 363.000000 at: apply_controller_rotation()
Velocity Y Changed 362.000000 -> 363.000000 at: clamp(spring_arm)
Velocity Y Changed 362.000000 -> 363.000000 at: move_and_slide_with_snap()
Gravity: -0.666667 Velocity: 364.000000
Velocity Y Changed 363.000000 -> 364.000000 at: apply_gravity()
Velocity Y Changed 363.000000 -> 364.000000 at: update_snap_vector()
Velocity Y Changed 363.000000 -> 364.000000 at: jump()
Velocity Y Changed 363.000000 -> 364.000000 at: climbing()
Velocity Y Changed 363.000000 -> 364.000000 at: apply_controller_rotation()
Velocity Y Changed 363.000000 -> 364.000000 at: clamp(spring_arm)
Velocity Y Changed 363.000000 -> 364.000000 at: move_and_slide_with_snap()
Gravity: -0.666667 Velocity: 365.000000
Velocity Y Changed 364.000000 -> 365.000000 at: apply_gravity()
Velocity Y Changed 364.000000 -> 365.000000 at: update_snap_vector()
Velocity Y Changed 364.000000 -> 365.000000 at: jump()
Velocity Y Changed 364.000000 -> 365.000000 at: climbing()
Velocity Y Changed 364.000000 -> 365.000000 at: apply_controller_rotation()
Velocity Y Changed 364.000000 -> 365.000000 at: clamp(spring_arm)
Velocity Y Changed 364.000000 -> 365.000000 at: move_and_slide_with_snap()
Gravity: -0.666667 Velocity: 366.000000
Velocity Y Changed 3[...]
[output overflow, print less text!]
--- Debugging process stopped ---
is there anything you can gleam from this?
hexgrid
September 2, 2025, 5:39pm
28
The first thing to glean was that my debug function was bad. VEL_Y should have been global.
The second is that it appears the change is happening outside of _physics_process()
? The new value is consistent for each entire run through the function, but itâs clearly incrementing per frame.
Maybe itâs something in _process()
or _unhandled_input()
? Maybe some other object is reaching in to this and messing with velocity.y
?
hexgrid
September 2, 2025, 5:41pm
29
Oh, hang on, no, itâs changing in apply_gravity()
.
func apply_gravity(delta: float) -> void:
if gravity_active:
velocity.y += clampf(velocity.y + (delta * GRAVITY), GRAVITY, JUMP_IMPULSE)
That implies gravity_active
is set (or weâd expect this to do nothing).
So presumably clampf(velocity.y + (delta * GRAVITY), GRAVITY, JUMP_IMPULSE)
is producing a value of 1.0.
Which⌠is weird? But that seems to be where things are happening.
ok i tweaked a few things, is there anything you can get from this?
--- Debugging process started ---
Godot Engine v3.5.stable.official.991bb6ac7 - https://godotengine.org
OpenGL ES 3.0 Renderer: NVIDIA GeForce RTX 4060/PCIe/SSE2
Async. shader compilation: OFF
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Velocity Y Changed 0.000000 -> -0.666667 at: move_and_slide_with_snap()
Velocity Y Changed -0.666667 -> -2.000000 at: apply_gravity()
Velocity Y Changed -0.666667 -> -2.000000 at: update_snap_vector()
Velocity Y Changed -0.666667 -> -2.000000 at: jump()
Velocity Y Changed -0.666667 -> -2.000000 at: climbing()
Velocity Y Changed -0.666667 -> -2.000000 at: apply_controller_rotation()
Velocity Y Changed -0.666667 -> -2.000000 at: clamp(spring_arm)
Velocity Y Changed -0.666667 -> 0.000000 at: move_and_slide_with_snap()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_c[...]
[output overflow, print less text!]
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: cl[...]
[output overflow, print less text!]
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: [...]
[output overflow, print less text!]
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: cl[...]
[output overflow, print less text!]
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> -0.666667 at: jump()
Velocity Y Changed 0.000000 -> -0.666667 at: cl[...]
[output overflow, print less text!]
Velocity Y Changed 0.000000 -> -0.666667 at: climbing()
Velocity Y Changed 0.000000 -> -0.666667 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> -0.666667 at: clamp(spring_arm)
Velocity Y Changed 0.000000 -> -0.666667 at: apply_gravity()
Velocity Y Changed 0.000000 -> -0.666667 at: update_snap_vector()
Velocity Y Changed 0.000000 -> 20.000000 at: jump()
Velocity Y Changed 0.000000 -> 20.000000 at: climbing()
Velocity Y Changed 0.000000 -> 20.000000 at: apply_controller_rotation()
Velocity Y Changed 0.000000 -> 20.000000 at: clamp(spring_arm)
Velocity Y Changed 0.000000 -> 20.000000 at: move_and_slide_with_snap()
Velocity Y Changed 20.000000 -> 21.000000 at: apply_gravity()
Velocity Y Changed 20.000000 -> 21.000000 at: update_snap_vector()
Velocity Y Changed 20.000000 -> 21.000000 at: jump()
Velocity Y Changed 20.000000 -> 21.000000 at: climbing()
Velocity Y Changed 20.000000 -> 21.000000 at: apply_controller_rotation()
Velocity Y Changed 20.000000 -> 21.000000 at: clamp(spring_arm)
Velocity Y Changed 20.000000 -> 21.000000 at: move_and_slide_with_snap()
Velocity Y Changed 21.000000 -> 22.000000 at: apply_gravity()
Velocity Y Changed 21.000000 -> 22.000000 at: update_snap_vector()
Velocity Y Changed 21.000000 -> 22.000000 at: jump()
Velocity Y Changed 21.000000 -> 22.000000 at: climbing()
Velocity Y Changed 21.000000 -> 22.000000 at: apply_controller_rotation()
Velocity Y Changed 21.000000 -> 22.000000 at: clamp(spring_arm)
Velocity Y Changed 21.000000 -> 22.000000 at: move_and_slide_with_snap()
Velocity Y Changed 22.000000 -> 23.000000 at: apply_gravity()
Velocity Y Changed 22.000000 -> 23.000000 at: update_snap_vector()
Velocity Y Changed 22.000000 -> 23.000000 at: jump()
Velocity Y Changed 22.000000 -> 23.000000 at: climbing()
Velocity Y Changed 22.000000 -> 23.000000 at: apply_controller_rotation()
Velocity Y Changed 22.000000 -> 23.000000 at: clamp(spring_arm)
Velocity Y Changed 22.000000 -> 23.000000 at: move_and_slide_with_snap()
Velocity Y Changed 23.000000 -> 24.000000 at: apply_gravity()
Velocity Y Changed 23.000000 -> 2[...]
[output overflow, print less text!]
Velocity Y Changed 61.000000 -> 62.000000 at: apply_gravity()
Velocity Y Changed 61.000000 -> 62.000000 at: update_snap_vector()
Velocity Y Changed 61.000000 -> 62.000000 at: jump()
Velocity Y Changed 61.000000 -> 62.000000 at: climbing()
Velocity Y Changed 61.000000 -> 62.000000 at: apply_controller_rotation()
Velocity Y Changed 61.000000 -> 62.000000 at: clamp(spring_arm)
Velocity Y Changed 61.000000 -> 62.000000 at: move_and_slide_with_snap()
Velocity Y Changed 62.000000 -> 63.000000 at: apply_gravity()
Velocity Y Changed 62.000000 -> 63.000000 at: update_snap_vector()
Velocity Y Changed 62.000000 -> 63.000000 at: jump()
Velocity Y Changed 62.000000 -> 63.000000 at: climbing()
Velocity Y Changed 62.000000 -> 63.000000 at: apply_controller_rotation()
Velocity Y Changed 62.000000 -> 63.000000 at: clamp(spring_arm)
Velocity Y Changed 62.000000 -> 63.000000 at: move_and_slide_with_snap()
Velocity Y Changed 63.000000 -> 64.000000 at: apply_gravity()
Velocity Y Changed 63.000000 -> 64.000000 at: update_snap_vector()
Velocity Y Changed 63.000000 -> 64.000000 at: jump()
Velocity Y Changed 63.000000 -> 64.000000 at: climbing()
Velocity Y Changed 63.000000 -> 64.000000 at: apply_controller_rotation()
Velocity Y Changed 63.000000 -> 64.000000 at: clamp(spring_arm)
Velocity Y Changed 63.000000 -> 64.000000 at: move_and_slide_with_snap()
Velocity Y Changed 64.000000 -> 65.000000 at: apply_gravity()
Velocity Y Changed 64.000000 -> 65.000000 at: update_snap_vector()
Velocity Y Changed 64.000000 -> 65.000000 at: jump()
Velocity Y Changed 64.000000 -> 65.000000 at: climbing()
Velocity Y Changed 64.000000 -> 65.000000 at: apply_controller_rotation()
Velocity Y Changed 64.000000 -> 65.000000 at: clamp(spring_arm)
Velocity Y Changed 64.000000 -> 65.000000 at: move_and_slide_with_snap()
Velocity Y Changed 65.000000 -> 66.000000 at: apply_gravity()
Velocity Y Changed 65.000000 -> 66.000000 at: update_snap_vector()
Velocity Y Changed 65.000000 -> 66.000000 at: jump()
Velocity Y Changed 65.000000 -> 66.000000 at: climbing()
Velocity Y Changed 65.000000 -> 66.000000[...]
[output overflow, print less text!]
Velocity Y Changed 122.000000 -> 123.000000 at: apply_gravity()
Velocity Y Changed 122.000000 -> 123.000000 at: update_snap_vector()
Velocity Y Changed 122.000000 -> 123.000000 at: jump()
Velocity Y Changed 122.000000 -> 123.000000 at: climbing()
Velocity Y Changed 122.000000 -> 123.000000 at: apply_controller_rotation()
Velocity Y Changed 122.000000 -> 123.000000 at: clamp(spring_arm)
Velocity Y Changed 122.000000 -> 123.000000 at: move_and_slide_with_snap()
Velocity Y Changed 123.000000 -> 124.000000 at: apply_gravity()
Velocity Y Changed 123.000000 -> 124.000000 at: update_snap_vector()
Velocity Y Changed 123.000000 -> 124.000000 at: jump()
Velocity Y Changed 123.000000 -> 124.000000 at: climbing()
Velocity Y Changed 123.000000 -> 124.000000 at: apply_controller_rotation()
Velocity Y Changed 123.000000 -> 124.000000 at: clamp(spring_arm)
Velocity Y Changed 123.000000 -> 124.000000 at: move_and_slide_with_snap()
Velocity Y Changed 124.000000 -> 125.000000 at: apply_gravity()
Velocity Y Changed 124.000000 -> 125.000000 at: update_snap_vector()
Velocity Y Changed 124.000000 -> 125.000000 at: jump()
Velocity Y Changed 124.000000 -> 125.000000 at: climbing()
Velocity Y Changed 124.000000 -> 125.000000 at: apply_controller_rotation()
Velocity Y Changed 124.000000 -> 125.000000 at: clamp(spring_arm)
Velocity Y Changed 124.000000 -> 125.000000 at: move_and_slide_with_snap()
Velocity Y Changed 125.000000 -> 126.000000 at: apply_gravity()
Velocity Y Changed 125.000000 -> 126.000000 at: update_snap_vector()
Velocity Y Changed 125.000000 -> 126.000000 at: jump()
Velocity Y Changed 125.000000 -> 126.000000 at: climbing()
Velocity Y Changed 125.000000 -> 126.000000 at: apply_controller_rotation()
Velocity Y Changed 125.000000 -> 126.000000 at: clamp(spring_arm)
Velocity Y Changed 125.000000 -> 126.000000 at: move_and_slide_with_snap()
Velocity Y Changed 126.000000 -> 127.000000 at: apply_gravity()
Velocity Y Changed 126.000000 -> 127.000000 at: update_snap_vector()
Velocity Y Changed 126.000000 -> 127.000000 at: jump()
Velocity Y Changed 126.000000 -> 12[...]
[output overflow, print less text!]
Velocity Y Changed 183.000000 -> 184.000000 at: apply_gravity()
Velocity Y Changed 183.000000 -> 184.000000 at: update_snap_vector()
Velocity Y Changed 183.000000 -> 184.000000 at: jump()
Velocity Y Changed 183.000000 -> 184.000000 at: climbing()
Velocity Y Changed 183.000000 -> 184.000000 at: apply_controller_rotation()
Velocity Y Changed 183.000000 -> 184.000000 at: clamp(spring_arm)
Velocity Y Changed 183.000000 -> 184.000000 at: move_and_slide_with_snap()
Velocity Y Changed 184.000000 -> 185.000000 at: apply_gravity()
Velocity Y Changed 184.000000 -> 185.000000 at: update_snap_vector()
Velocity Y Changed 184.000000 -> 185.000000 at: jump()
Velocity Y Changed 184.000000 -> 185.000000 at: climbing()
Velocity Y Changed 184.000000 -> 185.000000 at: apply_controller_rotation()
Velocity Y Changed 184.000000 -> 185.000000 at: clamp(spring_arm)
Velocity Y Changed 184.000000 -> 185.000000 at: move_and_slide_with_snap()
Velocity Y Changed 185.000000 -> 186.000000 at: apply_gravity()
Velocity Y Changed 185.000000 -> 186.000000 at: update_snap_vector()
Velocity Y Changed 185.000000 -> 186.000000 at: jump()
Velocity Y Changed 185.000000 -> 186.000000 at: climbing()
Velocity Y Changed 185.000000 -> 186.000000 at: apply_controller_rotation()
Velocity Y Changed 185.000000 -> 186.000000 at: clamp(spring_arm)
Velocity Y Changed 185.000000 -> 186.000000 at: move_and_slide_with_snap()
Velocity Y Changed 186.000000 -> 187.000000 at: apply_gravity()
Velocity Y Changed 186.000000 -> 187.000000 at: update_snap_vector()
Velocity Y Changed 186.000000 -> 187.000000 at: jump()
Velocity Y Changed 186.000000 -> 187.000000 at: climbing()
Velocity Y Changed 186.000000 -> 187.000000 at: apply_controller_rotation()
Velocity Y Changed 186.000000 -> 187.000000 at: clamp(spring_arm)
Velocity Y Changed 186.000000 -> 187.000000 at: move_and_slide_with_snap()
Velocity Y Changed 187.000000 -> 188.000000 at: apply_gravity()
Velocity Y Changed 187.000000 -> 188.000000 at: update_snap_vector()
Velocity Y Changed 187.000000 -> 188.000000 at: jump()
Velocity Y Changed 187.000000 -> 18[...]
[output overflow, print less text!]
Velocity Y Changed 244.000000 -> 245.000000 at: apply_gravity()
Velocity Y Changed 244.000000 -> 245.000000 at: update_snap_vector()
Velocity Y Changed 244.000000 -> 245.000000 at: jump()
Velocity Y Changed 244.000000 -> 245.000000 at: climbing()
Velocity Y Changed 244.000000 -> 245.000000 at: apply_controller_rotation()
Velocity Y Changed 244.000000 -> 245.000000 at: clamp(spring_arm)
Velocity Y Changed 244.000000 -> 245.000000 at: move_and_slide_with_snap()
Velocity Y Changed 245.000000 -> 246.000000 at: apply_gravity()
Velocity Y Changed 245.000000 -> 246.000000 at: update_snap_vector()
Velocity Y Changed 245.000000 -> 246.000000 at: jump()
Velocity Y Changed 245.000000 -> 246.000000 at: climbing()
Velocity Y Changed 245.000000 -> 246.000000 at: apply_controller_rotation()
Velocity Y Changed 245.000000 -> 246.000000 at: clamp(spring_arm)
Velocity Y Changed 245.000000 -> 246.000000 at: move_and_slide_with_snap()
Velocity Y Changed 246.000000 -> 247.000000 at: apply_gravity()
Velocity Y Changed 246.000000 -> 247.000000 at: update_snap_vector()
Velocity Y Changed 246.000000 -> 247.000000 at: jump()
Velocity Y Changed 246.000000 -> 247.000000 at: climbing()
Velocity Y Changed 246.000000 -> 247.000000 at: apply_controller_rotation()
Velocity Y Changed 246.000000 -> 247.000000 at: clamp(spring_arm)
Velocity Y Changed 246.000000 -> 247.000000 at: move_and_slide_with_snap()
Velocity Y Changed 247.000000 -> 248.000000 at: apply_gravity()
Velocity Y Changed 247.000000 -> 248.000000 at: update_snap_vector()
Velocity Y Changed 247.000000 -> 248.000000 at: jump()
Velocity Y Changed 247.000000 -> 248.000000 at: climbing()
Velocity Y Changed 247.000000 -> 248.000000 at: apply_controller_rotation()
Velocity Y Changed 247.000000 -> 248.000000 at: clamp(spring_arm)
Velocity Y Changed 247.000000 -> 248.000000 at: move_and_slide_with_snap()
Velocity Y Changed 248.000000 -> 249.000000 at: apply_gravity()
Velocity Y Changed 248.000000 -> 249.000000 at: update_snap_vector()
Velocity Y Changed 248.000000 -> 249.000000 at: jump()
Velocity Y Changed 248.000000 -> 24[...]
[output overflow, print less text!]
Velocity Y Changed 305.000000 -> 306.000000 at: apply_gravity()
Velocity Y Changed 305.000000 -> 306.000000 at: update_snap_vector()
Velocity Y Changed 305.000000 -> 306.000000 at: jump()
Velocity Y Changed 305.000000 -> 306.000000 at: climbing()
Velocity Y Changed 305.000000 -> 306.000000 at: apply_controller_rotation()
Velocity Y Changed 305.000000 -> 306.000000 at: clamp(spring_arm)
Velocity Y Changed 305.000000 -> 306.000000 at: move_and_slide_with_snap()
Velocity Y Changed 306.000000 -> 307.000000 at: apply_gravity()
Velocity Y Changed 306.000000 -> 307.000000 at: update_snap_vector()
Velocity Y Changed 306.000000 -> 307.000000 at: jump()
Velocity Y Changed 306.000000 -> 307.000000 at: climbing()
Velocity Y Changed 306.000000 -> 307.000000 at: apply_controller_rotation()
Velocity Y Changed 306.000000 -> 307.000000 at: clamp(spring_arm)
Velocity Y Changed 306.000000 -> 307.000000 at: move_and_slide_with_snap()
Velocity Y Changed 307.000000 -> 308.000000 at: apply_gravity()
Velocity Y Changed 307.000000 -> 308.000000 at: update_snap_vector()
Velocity Y Changed 307.000000 -> 308.000000 at: jump()
Velocity Y Changed 307.000000 -> 308.000000 at: climbing()
Velocity Y Changed 307.000000 -> 308.000000 at: apply_controller_rotation()
Velocity Y Changed 307.000000 -> 308.000000 at: clamp(spring_arm)
Velocity Y Changed 307.000000 -> 308.000000 at: move_and_slide_with_snap()
Velocity Y Changed 308.000000 -> 309.000000 at: apply_gravity()
Velocity Y Changed 308.000000 -> 309.000000 at: update_snap_vector()
Velocity Y Changed 308.000000 -> 309.000000 at: jump()
Velocity Y Changed 308.000000 -> 309.000000 at: climbing()
Velocity Y Changed 308.000000 -> 309.000000 at: apply_controller_rotation()
Velocity Y Changed 308.000000 -> 309.000000 at: clamp(spring_arm)
Velocity Y Changed 308.000000 -> 309.000000 at: move_and_slide_with_snap()
Velocity Y Changed 309.000000 -> 310.000000 at: apply_gravity()
Velocity Y Changed 309.000000 -> 310.000000 at: update_snap_vector()
Velocity Y Changed 309.000000 -> 310.000000 at: jump()
Velocity Y Changed 309.000000 -> 31[...]
[output overflow, print less text!]
--- Debugging process stopped ---
hexgrid
September 2, 2025, 6:08pm
31
The change always seems to happen at apply_gravity()
. Somethingâs wrong in that function, or the logic behind it.
here is the apply gravity function, can you sus it out?
func apply_gravity(delta: float) -> void:
if gravity_active:
velocity.y += clamp(velocity.y + (delta * GRAVITY), GRAVITY, JUMP_IMPULSE)
hexgrid
September 2, 2025, 7:36pm
33
I feel you arenât going to learn how to deal with things like this if I do everything for you.
That said, my suspicion is the +=
should be an =
; that is:
func apply_gravity(delta: float) -> void:
if gravity_active:
velocity.y = clamp(velocity.y + (delta * GRAVITY), GRAVITY, JUMP_IMPULSE)
I think that +=
in the original is the source of your increase forever; you want to be clamping velocity.y
, not the thing youâre adding to it.
ok that stopped the floating into space, but now the player is stuck to the floor