Interactions in 3D?

Godot Version

Version 4.5.stable

Question

So I am working on a Resident Evil style game (like the PS1 ones) and I realized I have no idea how to make interactable buttons.

So in the intro a phone is ringing you need to hit E to interact or it will ring until you do.

I have never had to program a button that wasn’t a click of the mouse and I have no idea where to start on that.

Any pointers or tutorials linked would be super helpful. I am still super new to this and have no clue what I am doing.

Thanks a bunch.

You need to add something like RayCast3D where the player is looking and check if it collides with an interactable object like the phone when E is pressed :3

I only skipped around a bit through this video but it seems very well made, might help you

1 Like

Oh yeah this was the one I found and it did end up working! I just forgot to close the thread! Thanks a bunch!