[Papervision3D] Animating camera to target
Gordon Everett
gordee at hotmail.co.uk
Tue Jun 23 01:17:27 PDT 2009
If I have understood what you are trying to do, then try this;
interactiveScene3DEvent.target is the plane clicked on;
var xpos:Number = iS3DEvent.target.x - iS3DEvent.target.width/2;var ypos:Number = iScene3DEvent.target.y - iS3DEvent.target.height/2;
zpos:Number = iScene3DEvent.target.z - 100;
Tweener.addTween(camera, {x:xpos, y:ypos, :z:zpos, time:1});
hth
Regards
Gordon Everett
My preferred email address: gordon.everett2 at gmail.com
My Blog: http://flashgordonmedia.blogspot.com/
> Date: Mon, 22 Jun 2009 22:18:15 -0700
> From: e_account at mac.com
> To: papervision3D at osflash.org
> Subject: [Papervision3D] Animating camera to target
>
>
> I have 20 planes positioned with z spacing what I'm trying to do is move the
> camera through all my planes as the user clicks on each plane. I'm trying to
> figure out how to do that. I tried setting the camera target to the clicked
> plane but that didn't work. I just want to tween the camera through each
> plane like a fly through.
>
> Any ideas please.
> --
> View this message in context: http://www.nabble.com/Animating-camera-to-target-tp24158838p24158838.html
> Sent from the Papervision3D mailing list archive at Nabble.com.
>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
_________________________________________________________________
Get the best of MSN on your mobile
http://clk.atdmt.com/UKM/go/147991039/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20090623/4d0579c5/attachment-0001.html>
More information about the Papervision3D
mailing list