ahso! that's tight code. very nice tip

On Jun 2, 5:59 am, Michael Iv <[email protected]> wrote:
> You didnt get me . Just clone the matrix of the container and apply it to the 
> camera .like this :
> Camera.transform=container.transform.clone()
> Than adjust the offset forth camera to be some distance behind the target 
> object . So you don't need to figure out direction as you do for now
>
> Sent from my iPhone
>
> On Jun 2, 2011, at 1:39 PM, Choons <[email protected]> wrote:
>
>
>
>
>
>
>
> > Thanks, Michael, good to know. Yeah I have it using
> > Matrix3DUtils.getForward with offsets but matching the rotation looks
> > kinda wonky. I'll give it a try inside the container and post the demo
> > here soon
>
> > On Jun 2, 5:00 am, Michael Iv <[email protected]> wrote:
> >> Camera is object3d so youcan add it . Or you can just copy containers 
> >> matrix to the camera so it will take the same transformation
>
> >> Sent from my iPhone
>
> >> On Jun 2, 2011, at 12:56 PM, Choons <[email protected]> wrote:
>
> >>> Hi - been working on an F16 flying demo. The model is broken into
> >>> several parts - fuselage, canopy, missiles, and bombs - all inside an
> >>> ObjectContainer3D. During flight I want a view slightly behind and
> >>> above the plane as it flies. It seems like a great way to do that
> >>> would be to place the camera(view?) inside the container with the
> >>> plane, set the pivot point on the F-16,  so any movement or rotation
> >>> of the container automatically transforms the camera with it. Is
> >>> something like that even possible?

Reply via email to