tweaks to crouch etc

This commit is contained in:
Derek
2024-12-05 23:12:48 -06:00
parent 5d9bac5292
commit d0b247d2c0
11 changed files with 92 additions and 43 deletions

View File

@@ -11,8 +11,10 @@ func _process(delta):
func _on_body_entered(body):
if body.is_in_group("player"):
body.velocity = Vector3(0,0,0)
body.is_climbing = true
body.global_position.y += .1
if body.global_position.y < global_position.y:
body.global_position.y += .2
func _on_body_exited(body):