Hey mogg

the sceneX, sceneY and sceneZ properties from the mouse event are
essentially global coordinates. they represent the position in the
scene of your mouse event. if you want to determine the position local
to the object (ie the coordinate inside the cube object of the mouse
event) then you can simply transform the scene coordinates into local
coordinates by using the inverse of the sceneMatrix3D property in
Away3dLite:

var invSceneMatrix3D:Matrix3D = o3D.sceneMatrix3D.clone();
invSceneMatrix3D.invert();
var localPosition:Vector3D =
invSceneMatrix3D.transformVector(event.scenePosition);

hth!

Rob

On Wednesday, October 28, 2009, Philip <[email protected]> wrote:
>
> I'd love to see a built in Local3D to Global3D method!

Reply via email to