Clone a camera

2 messages Options
Embed this post
Permalink
oletk

Clone a camera

Reply Threaded More More options
Print post
Permalink
Hi,
When I try to cast a camera clone to Camera3D, the object becomes null.

eg. var camera:Camera3D = cam.clone() as Camera3D;

Anyone have an idea of what is happening? Is the clone function borked or do I have to do something else?

- Ole
Steve D-7

Re: Clone a camera

Reply Threaded More More options
Print post
Permalink
You can't clone a camera via the DisplayObject3D::clone method.

There is no clean method of cloning a Camera at present.  You'll have to create your own clone method for cameras.


On Sun, Jul 5, 2009 at 4:23 PM, oletk <[hidden email]> wrote:

Hi,
When I try to cast a camera clone to Camera3D, the object becomes null.

eg. var camera:Camera3D = cam.clone() as Camera3D;

Anyone have an idea of what is happening? Is the clone function borked or do
I have to do something else?

- Ole
--
View this message in context: http://www.nabble.com/Clone-a-camera-tp24347885p24347885.html
Sent from the Papervision3D mailing list archive at Nabble.com.


_______________________________________________
Papervision3D mailing list
[hidden email]
http://osflash.org/mailman/listinfo/papervision3d_osflash.org


_______________________________________________
Papervision3D mailing list
[hidden email]
http://osflash.org/mailman/listinfo/papervision3d_osflash.org