clamber still a bit weird but getting better
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user