1


I created a body-locked toolbar like in this gif (link to better quality). Therefore I used the scripts Solver Handler and the Solver Body Lock:

enter image description here

Now I want that this toolbar collides with the environment and does not go through walls, because right now my toolbar goes through everthing. I read that you have to use the Solver Surface Magnetism but the only thing I found are guides to align an object to the surface so it sticks to it. But thats not what I want. Here is an example with the HoloLens menu, how it behaves (link to better quality):

enter image description here

My Question: How can I achieve that my toolbar behaves like the menu of the hololens, so it does not go through walls/environment?

Perazim
  • 1,501
  • 3
  • 19
  • 42
  • 1
    I tried to do on this once a couple years ago. It was never satisfactory. You have three competing issues: don't move when the gaze is nearby, do move when it isn't, and avoid RW geometry. Its a PITA trying to balance those factors. – Draco18s no longer trusts SE May 02 '19 at 15:07

2 Answers2

3

I think you can change the Orientation Mode in the Surface Magnetism solver to None to achieve the effect your are looking for.

enter image description here

1

There's probably something to do this already in MRTK but I'm not sure... I'll have to do something like that soon and I was thinking of implementing some logic myself, maybe use one ray from each corner of the toolbar towards the camera and if any hits the space mapping layer adjust the position until all four corners are visible or something of the sort... search a suitable position and Lerp the position there maybe?

Andres
  • 51
  • 7
  • The behaviors of the shell objects ("start" menu, holograms, other windows) and a whole lot of other stuff (like the gaze ring) are (sadly) not exposed to developers. – Draco18s no longer trusts SE May 03 '19 at 00:28
  • On the other hand, it looks like it's already finished and given to the developer. At least that's how it's presented on some pages. But I haven't managed it yet with the given scripts like Solver Handler and Solver Surface Magnitism. – Perazim May 03 '19 at 06:49