"is_on_screen()" check not working on rigid body

Godot Version

godot-4

Question

I need to be able to check if a node is on screen for my 3d game, but for some reason when I call “is_on_screen()” on a rigid body, it returns an error. do I need to reference the node3d directly or is there some other issue?

That function is only available for VisibleOnScreenNotifiers, maybe you have one as a child? Try $VisibleOnScreenNotifier3D.is_on_screen() instead? Make sure to post the errors you recieve.

1 Like

thank you so much, that’s why

Dont forget to mark this as solved