Fixed linear holding of items, still working on rotation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user