Hello, I’d like to ask if there is any way to obtain the Boolean value of whether the current mouse is placed on the model. I don’t know if there is any way to obtain it. I want to realize the operation mode like ZBrush, which can realize that the mouse is carved on the model and the rotating view is placed in the blank
Hi, perhaps the Mouselook Navigation addon would suit you for this purpose? It has an option for ZBrush-style navigation. (Disclaimer: I’m the developer of that addon)
As for your programming question, the easiest way would probably be to do a raycast (see the corresponding methods for Object, Scene and BVHTree), although it only works for meshes.
In principle, detecting the presence of objects under the mouse can also be done via selection and via depth-buffer. They work for non-meshes as well, but are more complicated and have their tradeoffs too.
I’ve implemented all three of these methods, so feel free to take a peek if you’re curious (and brave enough to delve into badly documented code)