Godot Version
4
Question
i have a class name “Breakable”, But whenever i print the get_colliding from a raycast that is touching the breakable it prints “Object Null”, How can i fix this?
4
i have a class name “Breakable”, But whenever i print the get_colliding from a raycast that is touching the breakable it prints “Object Null”, How can i fix this?
Could you send more information, maybe a screenshot of your scene and provide some scripts.
My guess would be the collision layers and masks inside your object and raycast don’t match
i just solved the problem, thanks for trying to help though.
the raycasts parent was a node3d, i didn’t know that does not detect collision from anything so i just switched it to a character body3d and it worked.