Hey Daevid

if you're interested in looking a bit more into the player internals, then
the drw package inside core is where all drawprimitives are stored. The
mouseevent3d uses two methods here contains(x, y) and getZ(x, y). with these
to functions, you are able to determine a) which drawing primitves are under
the mouse, and b) what the z coordinate is (the z-depth between the camera
and the surface of the drawprimitive under the mouse).

hth!

Rob


On Thu, Feb 19, 2009 at 11:02 AM, Darcey Lloyd <[email protected]>wrote:

> Wouldn't it be possible to translate the flash movies width and height at
> the camera's distance to a relative x and y coordinate on a ratio of
> camera.focus?
>
> camera = new HoverCamera3D({zoom:10, focus:100, distance:1600, yfactor:1,
> mintiltangle:-45, steps:4});
>
> z being 1600
>
> D
>
>
>
> 2009/2/19 Daevid <[email protected]>
>
>
>> Hmm, my understanding of 3d-math and how the engine works "under the
>> hood" is bit too weak to understand how to change that calculation
>> into the 3d position on a 3d-plane.
>>
>> I saw that there is a checkPrimitive function in the View class that
>> sets the scene coordinates and that it accepts a drawPrimitive.
>>
>> My thinking is that if I make this function public and send in then
>> plane's primitives I should be able to get a scene coordinate by
>> calling the view.getMouseEvent function... a quite shaky hack!
>>
>> Unfortunately I don't even understand how the Plane primitive is
>> connected to the drawPrimitive class. It's got faces and vertices but
>> i can't find any drawprimitives or subclasses?
>>
>> /David
>
>
>


-- 
Rob Bateman
Flash Development & Consultancy

[email protected]
www.infiniteturtles.co.uk
www.away3d.com

Reply via email to