当前位置:网站首页>MRTK3开发Hololens应用-手势拖拽、旋转 、缩放物体实现
MRTK3开发Hololens应用-手势拖拽、旋转 、缩放物体实现
2022-08-05 03:08:00 【Leoysq】
官方教程:练习 - 向对象添加手部交互脚本 - Learn | Microsoft Docs
使用工具MixedRealityFeatureTool-1.0.2206.1-Preview布局好Unity环境以后就开始开发了。
案例效果:
该案例实现拖拽物体和旋转物体



1.创建一个空场景,使用工具导入配置

2.任意创建一个被拖拽的物体模型

3.为其添加微软HoloLens插件MRTK 2的脚本


4.完成案例
接下来讲解单手精准缩放
添加脚本BoundsControl 给被操作的游戏物体

修改缩放角点样式

修改棱边样式


Bounds control - MRTK 2 | Microsoft Docs官方样式修改API
模拟手控输入:
- 要启用模拟右手,按住空格键。 要移除该手,松开空格键。
- 要启用模拟左手,按住左 Shift 键。 要移除该手,松开该键。
- 要在场景中移动左手或右手,移动鼠标。
- 要向前或向后移动手,滚动鼠标滚轮。
- 要模拟收缩手势,单击鼠标左键。
- 要旋转手,按住空格键 + CTRL 键(右手)或按住左 Shift 键 + CTRL 键(左手),然后移动鼠标
- 按Y固定右手,按T固定左手
良心教程
边栏推荐
- In 2022, you still can't "low code"?Data science can also play with Low-Code!
- Matlab画图3
- [Storage] Dawning Storage DS800-G35 ISCSI maps each LUN to the server
- 627. Change of gender
- [Solved] Unity Coroutine coroutine is not executed effectively
- Dynamic management of massive service instances
- 2022-08-04 The sixth group, hidden from spring, study notes
- Note that Weifang generally needs to pay attention to issuing invoices
- 627. 变更性别
- Hash table lookup (hash table)
猜你喜欢

word分栏小记

使用二维码传输文件的小工具 - QFileTrans 1.2.0.1
![[Solved] Unity Coroutine coroutine is not executed effectively](/img/ab/035ef004a561fb98d3dd1d7d8b5618.png)
[Solved] Unity Coroutine coroutine is not executed effectively

CPDA|How Operators Learn Data Analysis (SQL) from Negative Foundations

word column notes

毕设-基于SSM房屋租赁管理系统

How to Add Category-Specific Widgets in WordPress

Question about #sql shell#, how to solve it?

云原生(三十二) | Kubernetes篇之平台存储系统介绍

How OpenGL works
随机推荐
The problem of lack of dynamic library "libtinfo.so.5" in ksql application under UOS system
Linux下常见的开源数据库,你知道几个?
Talking about data security governance and privacy computing
Simple description of linked list and simple implementation of code
[Fortune-telling-60]: "The Soldier, the Tricky Way"-2-Interpretation of Sun Tzu's Art of War
引领数字医学高地,中山医院探索打造未来医院“新范式”
【已解决】Unity Coroutinue 协程未有效执行的问题
leetcode - symmetric binary tree
1873. 计算特殊奖金
Solve the problem of port occupancy Port xxxx was already in use
PostgreSQL数据库 用navicat 打开表结构的时候报错 cannot update secondarysnapshot during a parallel operation 怎么解决?
AI + Small Nucleic Acid Drugs | Eleven Completes $22 Million Seed Round Financing
虚拟内存原理与技术
Multithreading (2)
【 genius_platform software platform development 】 : seventy-six vs the preprocessor definitions written cow force!!!!!!!!!!(in the other groups conding personnel told so cow force configuration to can
Data to enhance Mixup principle and code reading
Hash table lookup (hash table)
QT MV\MVC structure
One hundred - day plan -- -- DAY2 brush
Beidou no. 3 short message terminal high slope in open-pit mine monitoring programme