简体   繁体   中英

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


在此处输入图片说明

unitypackage:

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

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.

在此处输入图片说明

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM