Sign in to follow this  
3Dbear

Action manager hover cursor changing even through walls

Recommended Posts

Hello,

This is my first post on this forum, so let me thank all of you for the problems you helped me with, by having them before me !

Now the question :

I have a problem using the action manager. I use it to trigger an action by clicking on objects and it works.

However I want the mouse pointer to change when I hover the object, to show that a mouse interaction is possible.  To do that I use the property "hoverCursor" of the actionManager. For the main usage it works (the cursor is changing when I hover my object) but it works also trough other objects occluding the interactive object. Note that the interaction is triggered only when I click on a visible part of the object, as exepected. It's just the hover cusor that doesn't seem to follow the same logic.

Here is a PG reproducing my problem https://www.babylonjs-playground.com/#W8KZMC.

When you click on the sphere, the cube visibility changes. If you set the camera below the ground plane and hover the sphere, you can see the pointer changing, but if you click, the cube is not changing (as expected).

So the question is, how can I do to prevent the cursor from changing when an object (here the sphere) is occluded ? I want to precise that in the real scene, I have about 500 objects in this case so I am looking for a light solution.

I hope the question is clear I'm not used to ask help on forums in English.

Thank in advance for your help !

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.