Scale object only one direction

Is it possible to make the scaling to go one direction only like in X-axis
Like the example image

object.scale.x = 3;

1 Like

As @manthrax wrote, just set one component of the scale. However, if you want to extend in one direction only, you have to:

  • either set the origin of the object at the boundary, then a mere object.scale.x is sufficient
  • or keep the origin as it is, but in addition to object.scale.x also move the center object.position.x



yeah, i think this is something i’m looking for

Here’s a fiddle with two options to play with:

1 Like

thats what im looking for thank you

1 Like