Anyone?
Trying to do some UV hit detection, and these lines are causing problems
import away3d.core.raycast.MouseHitMethod;
cube.mouseHitMethod = MouseHitMethod.MESH_CLOSEST_HIT;
How does this now work?
Thanks!
Where has away3d.core.raycast.MouseHitMethod; gone ?Software: Away3D 4.x |
||
Mr Margaret Scratcher, Sr. Member
Posted: 29 August 2012 02:07 PM Total Posts: 344 Anyone? Trying to do some UV hit detection, and these lines are causing problems import away3d.core.raycast.MouseHitMethod; cube.mouseHitMethod = MouseHitMethod.MESH_CLOSEST_HIT;
Thanks! |
||
Mr Margaret Scratcher, Sr. Member
Posted: 29 August 2012 02:15 PM Total Posts: 344 [ # 1 ] Just downloaded the examples for Away 3D 4 Gold, so I see things have changed slightly, so I’m no longer at a total loss. I’ll have an investigate now and see if I can solve it myself.. |
||
Mr Margaret Scratcher, Sr. Member
Posted: 29 August 2012 04:49 PM Total Posts: 344 [ # 2 ] Solved - I’ll leave this here for anyone else who had the same problem whilst migrating to the new version:
import away3d.core.raycast.MouseHitMethod; with import away3d.core.pick.*
cube.mouseHitMethod = MouseHitMethod.MESH_CLOSEST_HIT; with cube.pickingCollider = PickingColliderType.PB_BEST_HIT; The away3D 4 Gold intermediateMouseInteraction example also includes this: view.mousePicker = PickingType.RAYCAST_BEST_HIT;
|
||
GameDesigner, Jr. Member
Posted: 11 October 2012 10:49 AM Total Posts: 33 [ # 3 ] Hi Margaret! Best Regards!
|