Change the top of the cylinder

Hello,

I have a cylinder and between (0,0,0) (1,1,1) I want to just change the top location from (1,1,1) to (2,2,2)

How to do this in the code?

1 Answer

1

Create an empty game object at (0, 0, 0) and move the cylinder as a child of this empty game object. Now set the scale of the parent game object to (2, 2, 2).

Study about the coordinate system and transforms in Unity.