Question about the velocity tweak in this lecture

Hi all.

Does anyone know why we used the following range:

Vector2 velocityTweak = new Vector2
            (Random.Range(0f , randomFactor)
            Random.Range(0f, randomFactor));

Instead of having a range like this?

Vector2 velocityTweak = new Vector2
            (Random.Range(-randomFactor, randomFactor)
            Random.Range(-randomFactor, randomFactor));

Hi,

It’s probably a matter of personal preference. Your solution is also fine. :slight_smile:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms