Clone a camera

View: New views
2 Messages — Rating Filter:   Alert me  

Clone a camera

by oletk :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

Re: Clone a camera

by Steve D-7 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 <okolvik@...> 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
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org


_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org