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;


How does this now work?

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..

smile

   

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:


Okay so replace

import away3d.core.raycast.MouseHitMethod;

with

import away3d.core.pick.*


and then replace

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!
Can you please give me your paypal email? I wanna make a small donation. Thanks for the Post!

Best Regards!

Mr Margaret Scratcher - 29 August 2012 04:49 PM

Solved - I’ll leave this here for anyone else who had the same problem whilst migrating to the new version:


Okay so replace

import away3d.core.raycast.MouseHitMethod;

with

import away3d.core.pick.*


and then replace

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;

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X