Hey Jerome. thanx for posting your solution - good job! Rob
On Thu, Mar 25, 2010 at 2:23 AM, elguapoloco < [email protected]> wrote: > I finally figured it out! It was as simple as looking inside the > View3D class and grabbing the code to return the scene position of the > MouseEvent3D... Duh. > > Here's the "general idea" code: > > var scenepos:Vector3D; > var p:Point = new Point(-400, 50); > var uvt:Vector3D = _targetNull.faces[0].calculateUVT(p.x, p.y); > scenepos = camera.lens.unProject(p.x, p.y, uvt.z); > scenepos = camera.transform.matrix3D.transformVector(scenepos); > navigation.updatePosition( scenepos ); > > Target null is an invisible plane that's used to target the camera and > it itself looks at the camera... Works like a charm!!! > > I'll upload a screen cap :P > > Cheers, > > Jerome. > > To unsubscribe from this group, send email to away3d-dev+ > unsubscribegooglegroups.com or reply to this email with the words "REMOVE > ME" as the subject. > -- Rob Bateman Flash Development & Consultancy [email protected] www.infiniteturtles.co.uk www.away3d.com To unsubscribe from this group, send email to away3d-dev+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
