Is it possible to get a input for a mouse hovering over an object in 3d

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By bluemage

I was looking at this question

It has some links that are bad and I can’t seem to find the pickable option in collisionshape in 3d. Does this exist still and how would I get an on mouse enter and exit from hovering over a 3d object with the mouse cursor?

I figured it out in area there’s input ray pickable. I was looking in the collisionshap instead of area.

bluemage | 2019-06-02 01:18

:bust_in_silhouette: Reply From: Zylann

Pickable still exists, it’s under the CollisionObject category in the inspector.
The answer you linked is still more or less the same, just a few variables have changed and the input API too.

Once you made the node pickable, you can use the mouse_entered and mouse_exited signals.

I found a CollisionObject2d is there a 3d equivalent?

bluemage | 2019-05-31 21:06

CollisionObject is the 3D equivalent of CollisionObject2D. Almost all 3D physics nodes inherit from it.

Zylann | 2019-05-31 21:10