简体   繁体   English

Unity中项目探戈应用中的多点触控旋转和缩放对象

[英]multitouch rotation and scale object in project tango app in Unity

How do I add multitouch effect on Lenovo Phab 2 pro in unity environment, which does rotate and scale based on touch. 如何在统一环境中为Lenovo Phab 2 pro添加多点触控效果,该环境会根据触摸进行旋转和缩放。 For example, if i want to rotate any simple object i can use touch gesture to do that. 例如,如果我想旋转任何简单的对象,我可以使用触摸手势来做到这一点。 Can someone guide me for that ? 有人可以为此指导我吗?

In your question, you should show what you already tried and what doesn't work instead of asking people to solve a problem for you. 在您的问题中,您应该显示您已经尝试过的方法以及什么不起作用的方法,而不是要求人们为您解决问题。

That being said, Unity provide a way to deal with multi touch through the Input class ( https://docs.unity3d.com/ScriptReference/Input.html ) 话虽这么说,Unity提供了一种通过Input类( https://docs.unity3d.com/ScriptReference/Input.html )处理多点触摸的方法。

It might however be simple to look for an existing library handling gestures for you. 但是,为您查找现有的库处理手势可能很简单。

Touchscript works well for instance: http://touchscript.github.io/ Touchscript的效果很好,例如: http : //touchscript.github.io/

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

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