How the stylus grab things in openGL???

0 votes
asked Jul 20 by 1039260845@qq.com (20 points)
Now I'm rendering a simple cube by openGL in zspace,but how can I use the stylus to grab,translate,scale the cube like in Unity.
commented Jul 27 by AlexShorey (68 points)
Hello there. We don't have any sample code to demonstrate stylus grabs directly from the native SDK, like we do in Unity3D. OpenGL and the SDK don't supply the prerequisite functionality such as detecting where a ray vector is intersecting meshes in the scene. This would be the job of your chosen 3d engine/framework such as Unity3D, Ogre3D, Open Scene Graph, or even your own engine written from scratch. Despite this, the sample provided in Unity3D would still be a good frame of reference for how to grab objects regardless of the underlying engine.
...