Hello, I am trying to change my models scale with vector3 , I know that I can change it with the number value but It wont become the same size as a other model. So how can I change model scale with vector3 via script?
This is not a professional opinion, but have you tried dividing the magnitudes of the vector3 and the model’s dimensions? (you’ll have to manually calculate the dimensions probably). This, I’m assuming, will give you a percentage of the model.
(Just something I thought of that might help, but I haven’t tested it out)
How do i divide magnitudes of vector3’s and how does that gonna work with scaling a model as the same size as a other model
The magnitude of the size is a number value, which is what you need, and it also describes the size of the model (again, you’ll have to get the dimensions of the model through your own calculations I think); assuming your model to start with a scale of 1, since the scale of the model is basically like a percentage of its starting size, you can try to get what percent your vector3’s magnitude is of the model’s size’s magnitude. Again, it’s just a thought that you’d have to see for yourself if it works.
Scale is a vector3 … even for a mesh. Be just like any other vector3 call.
Models only have the SetScale work for floats not Vector3’s
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.