当前位置:网站首页>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
边栏推荐
- HDU 1114: Piggy-Bank ← The Complete Knapsack Problem
- dmp (dump) dump file
- Principle and Technology of Virtual Memory
- [Solved] Unity Coroutine coroutine is not executed effectively
- Study Notes-----Left-biased Tree
- Why did they choose to fall in love with AI?
- Hash table lookup (hash table)
- Use SuperMap iDesktopX data migration tool to migrate ArcGIS data
- 软链接引发的物理备份问题
- Confessing the era of digital transformation, Speed Cloud engraves a new starting point for value
猜你喜欢

Confessing the era of digital transformation, Speed Cloud engraves a new starting point for value

The linear table lookup

On governance and innovation, the 2022 OpenAtom Global Open Source Summit OpenAnolis sub-forum came to a successful conclusion

链表的简单描述及代码的简单实现

The usage of try...catch and finally in js

Study Notes-----Left-biased Tree

Principle and Technology of Virtual Memory

shell脚本:for循环与while循环

今年七夕,「情蔬」比礼物更有爱

冰蝎V4.0攻击来袭,安全狗产品可全面检测
随机推荐
引领数字医学高地,中山医院探索打造未来医院“新范式”
QT MV\MVC structure
public static <T> List<T> asList(T... a) 原型是怎么回事?
J9 Digital Currency: What is the creator economy of web3?
Question about #sql shell#, how to solve it?
(11) Metaclass
[论文笔记] MapReduce: Simplified Data Processing on Large Clusters
龙蜥社区第二届理事大会圆满召开!理事换届选举、4 位特约顾问加入
.NET Application -- Helloworld (C#)
优炫数据库的单节点如何转集群
Physical backup issues caused by soft links
Programmer's Tanabata Romantic Moment
IJCAI2022 | DictBert: Pre-trained Language Models with Contrastive Learning for Dictionary Description Knowledge Augmentation
sql server installation prompts that the username does not exist
论治理与创新,2022 开放原子全球开源峰会 OpenAnolis 分论坛圆满落幕
High Item 02 Information System Project Management Fundamentals
【滤波跟踪】基于matlab无迹卡尔曼滤波惯性导航+DVL组合导航【含Matlab源码 2019期】
Beyond YOLO5-Face | YOLO-FaceV2 officially open source Trick+ academic point full
达梦8数据库导出导入
word column notes