Omid Gharib
Omid Gharib

Reputation: 321

How to change dimension of a geometry mesh dynamically in three.js

I want to change height of my geometry meshes dynamically how is it possible here is my demo

Upvotes: 1

Views: 582

Answers (1)

Yenza
Yenza

Reputation: 446

You use scale to change the size of your mesh. For example:

Mesh.scale.x = 2.5; // WIDTH
Mesh.scale.y = 2.5; // HEIGHT
Mesh.scale.z = 2.5; // DEPTH

Upvotes: 2

Related Questions