If you mean stage coords.

Not sure, but a bit back I was playing about trying to get stage position of
an object and this seemed to work. Haven't really tested it to much. So
might be complete and utter  ...

If the veiw isnt same size as stage then obviously it fails.
Instead of passing an object I suppose you could make it into a vector3D and
redo.

private function getStagePosition(cam:Camera3D,
obj:ObjectContainer3D):Vector3D
{
    var camT:Matrix3D = cam.viewProjection.clone();
    var planT:Matrix3D = obj.sceneTransform.clone();
    camT.prepend(planT);

    var pv:Vector3D = Utils3D.projectVector(camT, new Vector3D());
    pv.x = (pv.x * stage.stageWidth / 2) + stage.stageWidth / 2
    pv.y  = (pv.y*-1 * stage.stageHeight / 2) + stage.stageHeight / 2
    return pv;
}

For uv. Then use plane3D and baryCentric
http://groups.google.com/group/away3d-dev/browse_thread/thread/5a008f433fda949b/828635f208f834d2?lnk=gst&q=baryCentric#828635f208f834d2

I think its still the same for broomstick

Reply via email to