clamber still a bit weird but getting better

This commit is contained in:
derek
2025-06-17 11:09:20 -05:00
parent daf0cf9c80
commit 8af4bdd6f6
6 changed files with 22 additions and 15 deletions

View File

@@ -393,11 +393,15 @@ func speed_modifiers():
func can_clamber():
var clamber_ray_collided = false
const CHECK_RESOLUTION = .1
const CHECK_RESOLUTION = .01
const MAX_RAY_POSITION = .607
const MIN_RAY_POSITION = -.9
clamber_check_ray.position.y = MAX_RAY_POSITION
while clamber_check_ray.position.y > MIN_RAY_POSITION:
print("CLAMBER RAY POS : ", clamber_check_ray.position.y)
print("COLLISION : ",clamber_check_ray.is_colliding())
if clamber_check_ray.is_colliding():
clamber_ray_collided = true
break