Hi! I really hope I’m putting this in the right section on here , I’ve been struggling with an issue and can’t find a way to fix it or a specific tutorial and I’m a beginner at anything surrounding code.
First off I want to say what the problem is, I want to make a 3D model rotate via mouse input in a 2D menu but only if the mouse enters an Area2D/CollisionShape2D I’ve set up in the UI I’m making
I found a good tutorial on how to make an object rotate with mouse input and that script is on that Node3D, the model spins exactly how I want it to in the UI but the mouse input is being registered anywhere I click
I’ve been trying to somehow set up the Area2D signals in the script attached to the Node3D but don’t even know how exactly to approach it and make it so that the rotating only works in the designated rectangle of the CollisionShape2D.
Any help is immensely appreciated, I’ve been trying to do this myself for 3 hours but I’m not experienced enough with how the engine works in some areas and also don’t possess the coding skills to be able to come up with a solution.