try

planet.scenePosition.x

for the global position.

Is that what you need? Let me know.

-Pete

On Mon, Apr 6, 2009 at 8:19 PM, caydieu <[email protected]> wrote:

>
> Hi again,
> Are there classes for an object's coordinates relative to the stage?
> I am using "yaw" to rotate a group of objects (it's a planet that
> rotates around a star), and basically I want to retrieve that planet's
> x coordinate. I need this to reposition the submenu that pops up
>
> here's how I've created the object:
> var pIntel=new Sphere({material:pIntelMat,radius:
> 50,segmentsH:segH,segmentsW:segW,y:-1,x:1000,z:0});
> here's my group:
> var oIntel:ObjectContainer3D = new ObjectContainer3D();
> oIntel.addChild(pIntel);
>
> trace(pIntel.x) //returns "1000"
> I understand that this is because the object is rotating on its y-axis
> and is at a constant 1000px from the center
> How do I retrieve its relevant coordinate to the stage? how do i use
> sceneX and/or screenX? for now, I am using mouseX. Thanks




-- 
___________________

Actionscript 3.0 Flash 3D Graphics Engine

HTTP://AWAY3D.COM

Reply via email to