I don't know if this is fixed already, but if not it's an easy fix. If picking on an InstancedMesh the positions:Array is null or undefined. So I just use the this._mesh.positions.
com.babylonhx.mesh.SubMesh
//
inline public function intersects(ray:Ray, positions:Array, indices:Array, fastCheck:Bool = false):IntersectionInfo {
var intersectInfo:IntersectionInfo = null;
I don't know if this is fixed already, but if not it's an easy fix. If picking on an InstancedMesh the positions:Array is null or undefined. So I just use the this._mesh.positions.
com.babylonhx.mesh.SubMesh
// inline public function intersects(ray:Ray, positions:Array, indices:Array, fastCheck:Bool = false):IntersectionInfo {
var intersectInfo:IntersectionInfo = null;