ios - Detect tap on child bones -


i have dae object bones. want detect tap on specific bone method :

- (nsarray *)hittest:(cgpoint)thepoint options:(nsdictionary *)options; 

this method returns parent node, wherever tap on object. how can handle ?

thanks in advance.

this not possible bones not have geometry hit.

one trick can use creating simple invisible box on every bone. combine boxes , apply skelleton it. then, check hit test's geometryindex.

another way create simple mesh in 3d software, follows bones no details make invisible , bind skeleton well. make note of position of each polygon , check against faceindex of te hit test.


Comments

Popular posts from this blog

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -