当前位置:网站首页>MRTK3 develops Hololens application - gesture drag, rotate, zoom object implementation
MRTK3 develops Hololens application - gesture drag, rotate, zoom object implementation
2022-08-05 03:19:00 【Leoysq】
Official Tutorial: Exercise - Add a Hand Interaction Script to an Object - Learn | Microsoft Docs
Use the tool MixedRealityFeatureTool-1.0.2206.1-Preview to lay out the Unity environment and start developing.
Case effect:
This case implements dragging and rotating objects



1. Create an empty scene and use the tool to import the configuration

2. Create a dragged object model arbitrarily

3. Script to add Microsoft HoloLens plug-in MRTK 2 to it


4. Complete the case
Next, I will explain one-handed precision zooming
Add script BoundsControl to the manipulated game object

Modify zoom corner style

Modify edge style


Bounds control - MRTK 2 | Microsoft DocsOfficial style modification API
Simulate manual input:
- To enable the simulated right hand, press and hold the space bar.To remove the hand, release the space bar.
- To enable the simulated left hand, hold down the left Shift key.To remove the hand, release the key.
- To move the left or right hand in the scene, move the mouse.
- To move your hand forward or backward, roll the mouse wheel.
- To simulate a pinch gesture, click the left mouse button.
- To rotate the hand, hold down Spacebar + CTRL (right hand) or left Shift + CTRL (left hand), then move the mouse
- Press Y to fix the right hand and T to fix the left hand
Conscience Course
边栏推荐
- Physical backup issues caused by soft links
- [Solved] Unity Coroutine coroutine is not executed effectively
- YYGH-13-客服中心
- 思考(八十八):使用 protobuf 自定义选项,做数据多版本管理
- 【已解决】Unity Coroutinue 协程未有效执行的问题
- .NET应用程序--Helloworld(C#)
- Solve the problem of port occupancy Port xxxx was already in use
- 2022高处安装、维护、拆除考试题模拟考试题库及在线模拟考试
- [Filter tracking] based on matlab unscented Kalman filter inertial navigation + DVL combined navigation [including Matlab source code 2019]
- Never put off till tomorrow what you can put - house lease management system based on the SSM
猜你喜欢

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

如何在WordPress中添加特定类别的小工具

通过模拟Vite一起深入其工作原理
![[Filter tracking] based on matlab unscented Kalman filter inertial navigation + DVL combined navigation [including Matlab source code 2019]](/img/c9/fff226b6d33a773b59a0314a99a788.png)
[Filter tracking] based on matlab unscented Kalman filter inertial navigation + DVL combined navigation [including Matlab source code 2019]

QT language file production

腾讯云【Hiflow】新时代自动化工具

静态方法获取配置文件数据

A small tool to transfer files using QR code - QFileTrans 1.2.0.1

tree table lookup

The usage of try...catch and finally in js
随机推荐
2022高处安装、维护、拆除考试题模拟考试题库及在线模拟考试
为什么pca分量没有关联
Programmer's Tanabata Romantic Moment
沃谈小知识 |“远程透传”那点事儿
毕设-基于SSM房屋租赁管理系统
[Solved] Unity Coroutine coroutine is not executed effectively
Tencent Cloud [Hiflow] New Era Automation Tool
sql怎么找字段里所有数据为空的字段
Common open source databases under Linux, how many do you know?
(十一)元类
Native js realizes the effect of selecting and canceling all the multi-select boxes
Intersection of Boolean Operations in SuperMap iDesktop.Net - Repairing Complex Models with Topological Errors
优炫数据库的单节点如何转集群
Kubernetes 网络入门
Syntax basics (variables, input and output, expressions and sequential statement completion)
【 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
冰蝎V4.0攻击来袭,安全狗产品可全面检测
burp安装及代理设置
Object.defineProperty monitors data changes in real time and updates the page
用Unity发布APP到Hololens2无坑教程