objective c - ARKit : how to find all planes hit by a hitTest? -
i have array of planes (non infinite planes => finite dimensions) in array:
plane *plane = [[plane alloc] initwithanchor: (arplaneanchor *)anchor]; [self.planes setobject:plane forkey:anchor.identifier]; (plane object heritates scnnode , has arplaneanchor *anchor , scnplane *planegeometry properties)
how find planes of array planes hit hittest @ point of screen ?
thanks !
i use categorybitmask , set example 3 (=11b). set categorybitmask option in hit test 2 (=10b). way nodes second bit of categroy 1 returned.
Comments
Post a Comment