Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Look Cursor Goes to Hovercast local space. How to get back to World Space? #61

Closed
imyjimmy opened this issue Mar 31, 2017 · 2 comments
Closed
Assignees

Comments

@imyjimmy
Copy link

Hi Zach,
I'm using Hover's Look cursor and the Hovercast Interface Module which is attached to my left hand. When I activate Hovercast and look at its general direction, the Look cursor jumps into Hovercast's local space. How do I get the look cursor back in world space when I de-activate Hovercast?

Thanks,

Jimmy

@zachkinstner
Copy link
Member

zachkinstner commented Apr 5, 2017

It looks like you found a bug. When searching for the best item, the "Look" cursor's raycast currently does not consider the active/inactive state of an item.

For an immediate workaround, pelase try this: at line 77 of HoverItemsRaycastManager, you can add a new condition to the if statement:

if ( !item.isActiveAndEnabled || item.IsHighlightPreventedViaAnyDisplay() ) {
	continue;
}

I ran a quick test with this change, and it seems to resolve the issue. In the test, I had a Hovercast menu with a separate item placed behind it. Upon deactivating the Hovercast object, the "Look" cursor now jumps onto the other item's plane/space. And upon re-activating Hovercast, the "Look" cursor returns to the Hovercast plane/space as expected.

@imyjimmy
Copy link
Author

Thanks! Just saw this. Closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants