Simply put, I have no idea how to write the code code for the 3D raycasts, or even what the code is. I'm trying to get back the name of the object the raycast is colliding with. Every tutorial and post I've found is outdated, using is_colliding() which I found to have been removed, and the documentation didn't help either. I'm really new to Godot, so a full explanation/examples would be much appreciated!

EDIT: I realized I wasn't reading the documentation properly and that is_colliding() was removed only for a couple of things, which doesn't include raycasts.

For anybody who may run into the same issue, I used this video:

It uses is_colliding(), so I brushed it off thinking it was removed, but I tested it and it worked. You're welcome to anybody this helps!

5 days later

is_colliding(), as the name implies, is checking if it's colliding. The topic refers to getting what it collides with. To get that, use get_collider()

@Perodactyl said: is_colliding(), as the name implies, is checking if it's colliding. The topic refers to getting what it collides with. To get that, use get_collider()

I already knew what is_colliding() is, I had just heard at some point that it was removed, so I thought it wasn't in Godot at all anymore until I found I was wrong.

Thank you for helping, but I've figured it out.

@bennnperson Okay. Sorry for being unhelpful.

@Perodactyl I'm sorry! I didn't mean for it to sound rude at all! I am really thankful that you were willing to help me out! Had I not found the video, your comment would have been extremely helpful, so thank you!

a year later