Tweening a mesh to a specific width

Software: Away3D 4.x

Avatar
Darcey, Moderator
Posted: 27 September 2012 03:41 PM   Total Posts: 209

Hi,

Is there a way to tween a mesh to a specific width?

I’m trying to tween a cube created out of planes to a specific size.

I used to do this with the width param and TweenLite.

Thanks

D

   

Avatar
80prozent, Sr. Member
Posted: 27 September 2012 04:19 PM   Total Posts: 430   [ # 1 ]

Hi

i think you can achive something like this, by using the scaleX scaleY scaleZ functions declared in Object3d.as

i didnt experiment with tweens in away3d 4 at all, but would be very interested in the best way for doing it.

 Signature 

sorry…i hope my actionscript is better than my english…

   

Avatar
Darcey, Moderator
Posted: 27 September 2012 04:21 PM   Total Posts: 209   [ # 2 ]

Ye, I was thinking of working out % per pixel and calculating what the target width is in %, but it’s just an awful way of doing things.

If I find a decent way to do it I will post.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X