it return 0 as "x","position.x" or "scenePosition.x"...
but i find away in this topic:
http://groups.google.com.ph/group/away3d-dev/browse_thread/thread/bd438e2cfd67d7c6/9a6a3e9a0abf2474?lnk=gst&q=mesh+position+0#9a6a3e9a0abf2474
by applying
myMesh.applyPosition( (myMesh.minX+myMesh.maxX)*.5, (myMesh.minY
+myMesh.maxY)*.5, (myMesh.minZ+myMesh.maxZ)*.5);
trace("poz + " + myMesh.position)
i didn't understand why i'm obligated to do that but it work...
But now, i have another trouble with this method.
This work well when i apply this on mesh that i hovered.
I would like to apply this on a defined mesh:
I load a collada, who contain many group of mesh
i focus on my mesh by doing this:
floor.getChildByName("f0s0")
floor is my collada conatiner (ObjectContainer3D
(event.loader.handle);)
this return me an object3D
how can i access to the mesh containing in this group ???
thanks
On 22 juil, 14:47, Peter Kapelyan <[email protected]> wrote:
> Hi!
>
> Can you try something like
>
> Mesh.scenePosition.x;
>
> To give you your X. It should work, let me know.
>
> -Pete
>
> On Wed, Jul 22, 2009 at 5:37 AM, Colir <[email protected]> wrote:
>
> > Hello,
> > i load a collada file wich contain different mesh
> > this is a buliding map with different room
> > I apply mouse over event on this different mesh
> > I would like to be able to add Cone over the room i hovered.
> > But when i try to have the mesh position, it always return "0"...
>
> > i look in other post but don't whind the way...
> > can you help me please
> > thanks
>
> --
> ___________________
>
> Actionscript 3.0 Flash 3D Graphics Engine
>
> HTTP://AWAY3D.COM