static GVRPickedObject makeHitMesh ( long colliderPointer , float distance , float hitx , float hity , float hitz , int faceIndex , float barycentricx , float barycentricy , float barycentricz , float texu , float texv , float normalx , float normaly , float normalz ) { GVRCollider collider = GVRCollider . lookup ( colliderPointer ) ; if ( collider == null ) { Log . d ( TAG , "makeHit: cannot find collider for %x" , colliderPointer ) ; return null ; } return new GVRPicker . GVRPickedObject ( collider , new float [ ] { hitx , hity , hitz } , distance , faceIndex , new float [ ] { barycentricx , barycentricy , barycentricz } , new float [ ] { texu , texv } , new float [ ] { normalx , normaly , normalz } ) ; }
Internal utility to help JNI add hit objects to the pick list . Specifically for MeshColliders with picking for UV Barycentric and normal coordinates enabled