Unity Ball Brawl.

As a little project for Ant we were told to code a ball that did something when it collided, I personally thought of trying to slow everything down to a stop but after some thought i decided to speed up the time in unity.

The code for this was fairly simple for this project all i needed to do was make a float variable and then make Time.timeScale equal to it. I then made it so 1 is added the world speed every time it collides with anything.


Below is the code that i used for this effect, as you can see it is very simple.



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s