Hi,
I’ve imported a 3ds model into a scene. Now I want to click on it and detect the exact point in the mesh I clicked. The events are firing correctly but what I’m getting is a point in the bounding box of the object and not on the object itself.
What I have in my View is:
_view.mousePicker = PickingType.SHADER;
I have the object in a container and in the container I have:
_container.pickingCollider = PickingColliderType.AUTO_BEST_HIT;
_container.shaderPickingDetails = true;
With these settings I’m getting an event with localPosition and scenePosition with a null value.
I’ve tried to set this in the imported mesh:
mesh.pickingCollider = PickingColliderType.PB_BEST_HIT;
mesh.shaderPickingDetails = true;
But as soon I pass the mouse over the model the application crashes in the ShaderPicker.as at line 392 because the uvs vector is null.
Can anyone help please?