I am working on a game which involves cells floating in world space. The player will start off with a size of 100 and a speed of 10. I just need some sort of formula which will decrease the speed of the cell as the size increases. I can't seem to figure it out, maths was never my strong point. So for example when the player hits 150 in size their speed may be around 8. I know I could do this manually by checking if the size is above a certain amount and setting the speed accordingly but this formula would make it a lot smoother and more efficient in general. Any help is greatly appreciated, thank you!
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
3 People are following this question.
Detecting Vector3 Movement speed.
My Character is moving fine horizontally and vertically, but moves way too fast diagonally
Movement speed difference between the different devices
Casting Ray Vector movement
Error with code, cannot figure out solution...