Sprite3D clone issue

Software: Away3D 4.x

Avatar
SasMaster, Sr. Member
Posted: 11 June 2011 05:00 PM   Total Posts: 127

HI all.Has anybody noticed that when cloning Sprite3D[Broomstick] the clone() method returns Object3D .So it can’t be added to a container (including scene) using addChild(). Do I miss something?

 Signature 

This looks like a job for superman
http://blog.alladvanced.net

   

Avatar
SasMaster, Sr. Member
Posted: 15 June 2011 06:53 PM   Total Posts: 127   [ # 1 ]

Anybody from the team can comment on this>?
Thanks

 Signature 

This looks like a job for superman
http://blog.alladvanced.net

   

Avatar
Alexander Seifert, Moderator
Posted: 18 June 2011 12:38 PM   Total Posts: 129   [ # 2 ]

I can’t speak for the team members working on that, but apparently, Sprite3D.clone() has just not yet been implemented.

There are efforts going on currently to add clone methods to all Object3Ds. That is why the method is already exposed and works for other classes, like Mesh.


As for Sprite3D, it simply isn’t available yet. I assume that as for the moment, you’d have to create a new instance of Sprite3D on your own and copy over all values and materials that you’d like to use with the clone.


Alex

 Signature 
signature_image

http://www.deltastrike.org

   

Avatar
SasMaster, Sr. Member
Posted: 18 June 2011 12:47 PM   Total Posts: 127   [ # 3 ]

He He ,no thanks .I will wait for the update. wink

 Signature 

This looks like a job for superman
http://blog.alladvanced.net

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X