How to scale an object and at same time fix the position ?

I’m trying to make a signal that expand like normal signal and move forward with the speed of sound …
this is for research helping my prof. to simulate this thing …
i tried to use local scale but always changing the position of my object over time …

 gameObject.transform.localScale +=new Vector3(0.3f,0.3f,0.3f);

 gameObject.transform.position += new Vector3(_x, _y, _z);

please help :frowning:

my prefap: sigfi--.prefab - Google Drive

Parent it to an empty object in such way that the parent is located at the point from which the object should expand, and scale the parent.

6989360--825275--upload_2021-3-30_14-57-28.png

5 Likes

You are a genius my friend :slight_smile: