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

Indicator Related Concerns #2

Open
GelzoneXUnsas opened this issue Nov 6, 2023 · 2 comments
Open

Indicator Related Concerns #2

GelzoneXUnsas opened this issue Nov 6, 2023 · 2 comments

Comments

@GelzoneXUnsas
Copy link

Description

The Indicator Manager is configured to use a DistanceIndicator as a Backup Prefab, but the expected behavior is not observed. Two main issues are encountered regarding the DistanceIndicator and distance calculation:

  1. No Indicator Found in Scene: Despite attempts in the DistanceIndicator.cs script to find an indicator in the scene, it's not being located (line 64, DistanceIndicator.cs).

  2. Incorrect Distance Calculation: When a tracking object is present (specifically referring to line 28 in DistanceIndicator.cs and line 32 in DistanceIndicatorArc.cs, which contain the same code), the minDis variable doesn't accurately detect the distance between the hands and the object. This is based on my testing and observations, where I've printed minDis with the Update() method to the screen.

My current objective is to achieve different sound pitch feedback based on the distance between the tracking object and the hand, which seems like is partially implemented in code already.

Please provide guidance or assistance to resolve these issues.

@jeffhuang
Copy link
Contributor

Thanks so much for the comment, @GelzoneXUnsas

Let me see if we can get back to you on this. Though we're pretty short on ability to investigate issues in this repository.

@tutu5110
Copy link
Contributor

tutu5110 commented Dec 5, 2023

Thanks for your report. If you are using your own scene, make sure you have IndicatorManager configured exactly same as our demo scene (HelloWorld.unity). Make sure you linked the prefabs (including the Backup Prefab you mentioned exactly the same way as we did in HelloWorld.Unity. This way the indicators will be automatically added to any object that has been "set grabbable". To do so, select an 3D object and click on "Set Grabbable" from the "Portable" menu. Hope that helps.

Once you are able to get indicator work, the second issue might be resolved by its own. Let me know if you encounter further issues.

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

No branches or pull requests

3 participants