简体   繁体   English

MRTK RC1触摸事件,来自多维数据集的每个角度

[英]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. 我试图从多维数据集的每个角度进行触摸事件,但无法使NearInteractionTouchable覆盖整个多维数据集。 It is just cover half of my cube box collider. 它只是我的方块碰撞机的一半。

https://gph.is/g/aXMVxOZ 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 https://gph.is/g/EJ0xlNZ


Scene configuration and unitypackage: 场景配置和统一打包:

  1. Unity Version 2018.3.11f1 Unity版本2018.3.11f1
  2. MRTK RC1 MRTK RC1
  3. Import MRTK, create scene, add cube, add near interaction touchable 导入MRTK,创建场景,添加立方体,添加可触摸的近距离交互
  4. Create simple script with based IMixedRealityTouchHandler to print something on Touch Started 使用基于IMixedRealityTouchHandler创建简单脚本以在Touch Started上打印内容


在此处输入图片说明

unitypackage: unitypackage:

https://1drv.ms/u/s!AjASC8dheotupcQxY45ydz0qUn0eeA 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. 事实上,它看起来像回答#1, 能够做一个多维数据集是从6个面可触摸,使用以下配置。 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. 感谢HoloDeveloper Slack的Julia给出了Near Interaction Touchable脚本的当前状态/详细信息。

Here they are: 他们来了:

1) how can I make my cube touch-able from all sides 1)如何使多维数据集可从各个方向触摸

2) how can I get the near interaction touchable to cover the entire face of a cube 2)如何使近距离互动可触摸以覆盖整个立方体

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. 对于1),当前nearinteractiontouchable只会分派到某个表面,因此要使多维数据集从6个边变为可触摸,您需要添加6个nearinteractiontouchables,每个立方体的一面。

for 2) it sounds like your configuration is wrong. 2)听起来您的配置错误。


From me on number 2, it was my wrong config, I was trying different number of Local Center, Up, Forward and Bounds number. 从我的2号开始,这是我的配置错误,我尝试使用其他号码的Local Center,Up,Forward和Bounds号码。

For those who has another thought or case that similar to this one, please make comment or add your own solution. 对于那些有其他想法或案例与此类似的人,请发表评论或添加自己的解决方案。

Thank You 谢谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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