When I use lookAt for the pipe to point at other objects it rotates
correctly.

The problem seems to be that I'm having an issue wrapping my brain
around the focus and zoom properties of the camera.  When I place a
cube at the camera position, I can see the cube on the screen as
though it were in front of the camera.  I thought that if I placed a
cube at the camera position that it would completely obstruct my
view.  How can I determine that position?  The position that I would
place the cube to block my view.  I think if I knew that, I could use
it to rotate the pipe to the correct angle.



On Jun 23, 5:10 pm, Peter Kapelyan <[email protected]> wrote:
> 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

Reply via email to