microsoft / MixedReality-UXTools-Unreal

UX tools and components for developing Mixed Reality applications in UE4.
https://microsoft.github.io/MixedReality-UXTools-Unreal/
MIT License
316 stars 86 forks source link

How to modify grab distance? #43

Closed ratkojagodic closed 3 years ago

ratkojagodic commented 3 years ago

I am trying to use the GenericManipulatorand the BoundsControlcomponents to allow far and near interactions. I would like to set up far interactions to start at say >30cm but near interactions to be only possible at <5cm from the target. Currently by adjusting the proximity cone I can set where the near/far threshold is, but that means that as soon as the hand is within the threshold, the user can grab nearby objects. I would like to set up some "dead zone" where the user cannot use far interaction but isn't close enough yet for near interactions.

How would I go about setting that up? It seems that MRTK can work that way but UXTools behave differently?

I am using:

Thank you, Ratko

ratkojagodic commented 3 years ago

OK, I figured it out. It's inUxtNearPointerComponent.h. The parameter is called ProximityRadius.

luis-valverde-ms commented 3 years ago

@ratkojagodic sorry for the delay replying. I'm glad you figured that out and thanks for sharing the solution with the rest.