Is the RaycastPicker.onlyMouseEnabled implementation correct?

Software: Away3D 4.x

rdoi, Member
Posted: 19 July 2013 01:57 AM   Total Posts: 86

In the previous version, I had to extend the RaycastPicker class to disable the mouseEnabled check, and instead, filter entities by name patterns.

In the newest version (4.1.4G), I saw a promising new RaycastPicker.onlyMouseEnabled option.

However, checking the code from github master branch: RaycastPicker.getViewCollision():65

var collector:EntityCollector view.entityCollector;
if (
collector.numMouseEnableds == 0)
return 
null

... it means, I can disable the mouseEnabled requirement for each entity through the ray, but I must have at least one enabled in the collection to get there?

Isn’t this strange?

 

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X