I am converting an Away3D project from AS3 to Haxe, and I have a problem with mouse picking: I have multiple meshes on stage, and I need to catch mouse event on them.
I am setting these properties for each mesh:
meshX.shaderPickingDetails = false;
meshX.pickingCollider = PickingColliderType.PB_FIRST_ENCOUNTERED;
meshX.mouseEnabled = true;
This worked in AS3, but on Haxe when I hover the mouse on a mesh the game crashes and the console spits out these lines
Uncaught TypeError: Cannot read property 'get_data' of null
at away3d_core_pick_PBPickingCollider.setLocalRay (PBPickingCollider.hx:49)
at away3d_entities_Mesh.collidesBefore (Mesh.hx:367)
at away3d_core_pick_RaycastPicker.getPickingCollisionVO (RaycastPicker.hx:206)
at away3d_core_pick_RaycastPicker.getViewCollision (RaycastPicker.hx:103)
at away3d_core_managers_Mouse3DManager.updateCollider (Mouse3DManager.hx:81)
...
Any idea?
Latest libs, HTML5.