Forum

Non-uniform scaling

01 October 2015 19:51 #4183
Is there a way to scale along an axis with the API? TSR and set_scale() only allow for a single number, but if I wanted to stretch an object along the Z-axis, how would I do that?

Thanks
01 October 2015 20:49 #4184
Hi,
Is there a way to scale along an axis with the API? TSR and set_scale() only allow for a single number, but if I wanted to stretch an object along the Z-axis, how would I do that?
Although Blend4Web does not support non-uniform scaling, you can easily achieve the stretching effect by using shape keys. Please see this code snippet for an example of how to use them.
Development Lead | Twitter
01 October 2015 22:31 #4186
Thanks. I was hoping for a way to do it procedurally with the new bone API, but I guess that can't really be done
05 October 2015 10:32 #4220

Please see this code snippet for an example of how to use them

And also take a look at the example from this thread, please.
Blend4Web developer
 
Please register or log in to leave a reply.