Hi,
how can i scale an object to a certain point?
I tried to scale with Vector3.Distance(startPoint,endPoint) but it isnt exactly.
Who can help?
Hi,
how can i scale an object to a certain point?
I tried to scale with Vector3.Distance(startPoint,endPoint) but it isnt exactly.
Who can help?
It’s not really clear what you mean - can you give some more detail? Are you zooming a camera in on an object or implementing a draggable scaling control in the editor or… what?
I have a line(a normal cube) with startpoint and endpoint. The startpoint is fix and i want that the endpoint will move to a certain point ( mouseclick). how can i make this?
If you have a start point and an end point, the size you need to scale the cube to is the magnitude of the vector between those points. That vector also defines your rotation, and its mid-point defines where the cube should be positioned. Should be about 3 lines of code. Which one do you need help with? ![]()