Fixed linear holding of items, still working on rotation

This commit is contained in:
derek
2024-11-13 11:55:37 -06:00
parent 90bc6411d4
commit 554c2e8110
3 changed files with 26 additions and 22 deletions

View File

@@ -36,7 +36,7 @@ func _physics_process(delta):
if ray.is_colliding():
var body = ray.get_collider()
if !body.is_in_group("player"):
if body != null and !body.is_in_group("player"):
mesh.visible = false
ray.enabled = false