|Topic was automatically imported from the old Question2Answer platform.
|Published before Godot 3 was released.
What would be the best way to implement a lever/switch/button in 3d? I was thinking abstractedly about it and was considering casting a ray from the mouse and if it hit the object within a certain distance then it would trigger a function. Now that I think about it that seems like it’s probably the way to do it…