Adityo Setyonugroho
Adityo Setyonugroho

Reputation: 897

MRTK RC1 Touch event from every angle of a cube

I tried to make touch event from every angle of a cube, but I can't make NearInteractionTouchable to cover whole cube. It is just cover half of my cube box collider.

https://gph.is/g/aXMVxOZ

I tried the touch sample from example scene, and it triggered touch event from any angle of the collider.

https://gph.is/g/EJ0xlNZ


Scene configuration and unitypackage:

  1. Unity Version 2018.3.11f1
  2. MRTK RC1
  3. Import MRTK, create scene, add cube, add near interaction touchable
  4. Create simple script with based IMixedRealityTouchHandler to print something on Touch Started


enter image description here

unitypackage:

https://1drv.ms/u/s!AjASC8dheotupcQxY45ydz0qUn0eeA

Upvotes: 0

Views: 307

Answers (2)

Julia Schwarz
Julia Schwarz

Reputation: 2630

Actually, it looks like to answer #1, I am able to make a cube that is touchable from 6 sides, using the following configuration. I am able to touch the cube from all six sides.

enter image description here

Upvotes: 1

Adityo Setyonugroho
Adityo Setyonugroho

Reputation: 897

This is current status of the kit, might be change in the future.

Thanks for Julia at HoloDeveloper Slack on giving current status / detail of Near Interaction Touchable script.

Here they are:

1) how can I make my cube touch-able from all sides

2) how can I get the near interaction touchable to cover the entire face of a cube

Answer:

for 1) currently nearinteractiontouchable will just dispatch to a surface, so to make a cube touchable from 6 sides you would need to add 6 nearinteractiontouchables, one for each side of the cube.

for 2) it sounds like your configuration is wrong.


From me on number 2, it was my wrong config, I was trying different number of Local Center, Up, Forward and Bounds number.

For those who has another thought or case that similar to this one, please make comment or add your own solution.

Thank You

Upvotes: 0

Related Questions