Hi.
I use Away3D 4.1.
Is this a bug?
Or Are there something wrong in my code?
My code:
_mesh = new Mesh(new SphereGeometry(1500), _material);
_mesh.geometry.convertToSeparateBuffers();
//_mesh.pickingCollider = PickingColliderType.AS3_BEST_HIT;
_mesh.pickingCollider = PickingColliderType.PB_BEST_HIT;
_mesh.mouseEnabled = true;
_mesh.mouseChildren = true;
_mesh.shaderPickingDetails = true;
_mesh.addEventListener( MouseEvent3D.MOUSE_MOVE, onMeshMouseMove );
view.scene.addChild(_mesh);
view.mousePicker = PickingType.RAYCAST_BEST_HIT;
And error:
TypeError: Error #1010: A term is undefined and has no properties.
at away3d.core.pick::PBPickingCollider/testSubMeshCollision()[/Users/Goro/ActionscriptLibrary/away3d/core/pick/PBPickingCollider.as:73]
at away3d.entities::Mesh/collidesBefore()[/Users/Goro/ActionscriptLibrary/away3d/entities/Mesh.as:348]
at away3d.core.pick::RaycastPicker/getPickingCollisionVO()[/Users/Goro/ActionscriptLibrary/away3d/core/pick/RaycastPicker.as:186]
at away3d.core.pick::RaycastPicker/getViewCollision()[/Users/Goro/ActionscriptLibrary/away3d/core/pick/RaycastPicker.as:98]
at away3d.core.managers::Mouse3DManager/updateCollider()[/Users/Goro/ActionscriptLibrary/away3d/core/managers/Mouse3DManager.as:59]
at away3d.containers::View3D/render()[/Users/Goro/ActionscriptLibrary/away3d/containers/View3D.as:626]
at SimpleAwayTest/onEnterFrame()[/Users/Goro/Desktop/test/src/SimpleAwayTest.as:429]