I've loaded a Collada .dae model into my A-Frame scene and animated the camera movement around it then use the mouse cursor to orient the camera using universal-controls from the aframe-extras component. About 50% of the time it is fine, but the other times it throws a error:
aframe.js:30870 Uncaught TypeError: Cannot read property '0' of undefined
raycast @ aframe.js:30870
intersectObject @ aframe.js:16216
intersectObject @ aframe.js:16224
from the line:
if ( uvs ) {
var uvs_f = uvs[ f ];
uvA.copy( uvs_f[ 0 ] );// <- that's where this error came from
uvB.copy( uvs_f[ 1 ] );
uvC.copy( uvs_f[ 2 ] );
intersection.uvIntersection( intersectionPoint, fvA, fvB, fvC, uvA, uvB, uvC );
}
It looks very similar to the question here: Three.js drag the object (but it unfortunately does not have an answer)