mannequin.js icon indicating copy to clipboard operation
mannequin.js copied to clipboard

Scale torso

Open adnanafzal565 opened this issue 1 year ago • 1 comments

First of all, Great library, thanks.

How to scale waist and chest of man ?

adnanafzal565 avatar Mar 13 '24 07:03 adnanafzal565

Scaling is available when you use mannequin.js and manually control the figures. The online posture editor has no functionality to modify body sizes.

Here is a demo how to scale the torso (and keep other body parts the same):

https://boytchev.github.io/mannequin.js/examples/qa-custom-torso-sizes.html

See lines 24-27 (s is the scaling factor):

man.torso.scale.set(s, s, s);
man.l_arm.scale.set(1/s, 1/s, 1/s);
man.r_arm.scale.set(1/s, 1/s, 1/s);
man.neck.scale.set(1/s, 1/s, 1/s);

boytchev avatar Mar 13 '24 21:03 boytchev