PBPickingCollider fires an error.

Software: Away3D 4.x

Avatar
GoroMatsumoto, Sr. Member
Posted: 10 April 2013 10:49 AM   Total Posts: 166

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.addEventListenerMouseEvent3D.MOUSE_MOVEonMeshMouseMove );
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]

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X