Try putting it inside it's own ObjectContainer3D (like a group), and use lookAt on the ObjectContainer3D instead. You will have to rotate the pipe (not the ObjectContainer3D ) until it's correct.
Once you figured the correct rotation for your pipe, you might be able to applyRotations() to the pipe and then you won't need that ObjectContainer3D, since applyRotations will lock in the correct rotation. Hope it makes sense -Pete On Wed, Jun 23, 2010 at 4:43 PM, abowman <[email protected]> wrote: > Yeah, like a hollow cylinder. > > > > On Jun 23, 4:38 pm, Peter Kapelyan <[email protected]> wrote: > > pipes? > > > > On Wed, Jun 23, 2010 at 4:36 PM, abowman <[email protected]> wrote: > > > How can I get a pipe to rotate so that I can look straight through it? > > > > > I tried using the pipes lookAt function with the camera position, but > > > it doesn't work correctly unless it's toward the center of the > > > screen. I get different results depending on what the camera's focus > > > and zoom are set to. Is there a way I can get the correct position to > > > pass to the pipes lookAt function or is there a better way to go about > > > doing this? > > > > > Thanks > > > > -- > > ___________________ > > > > Actionscript 3.0 Flash 3D Graphics Engine > > > > HTTP://AWAY3D.COM > -- ___________________ Actionscript 3.0 Flash 3D Graphics Engine HTTP://AWAY3D.COM
