简体   繁体   English

想要在触摸事件上旋转min3d库的三维图像

[英]Want to rotate 3d image of min3d library on touch event

I got the sample min3d library code and sample from google.com. 我从google.com获得了示例min3d library代码和示例。

It is working perfect and even working with the changed image. 它工作得很完美,甚至可以处理变化后的图像。

Now I want to rotate the .obj file with touch event like rotating the car on finger touch. 现在我想用触摸事件旋转.obj文件,比如用手指触摸旋转汽车。 As it is using the animation object in gl.rotation method which is little difficult to understand. 因为它在gl.rotation方法中使用动画对象,这有点难以理解。 I have no idea about it how to do so please provide me solution.. 我不知道怎么做,请给我解决方案..

You can add touch events as following 您可以添加触摸事件,如下所示

public boolean onTouchEvent(MotionEvent e) {
  //Your code goes here
  return true;
}

If you are not sure about how to rotate on touch events you can follow this link https://code.google.com/p/min3d/issues/detail?id=70 如果您不确定如何轮播触摸事件,可以点击此链接https://code.google.com/p/min3d/issues/detail?id=70

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

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