Timeline for How to randomize the ball direction?
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 14, 2014 at 9:23 | history | edited | radical | CC BY-SA 3.0 |
added 12 characters in body
|
Nov 14, 2014 at 1:01 | comment | added | uliwitness |
Shouldn't that be arc4random_uniform(max_angle -min_angle) +min_angle ? This way if arc4random gives 170 (the maximum), you'd add 10 to it and get 180, which is > max_angle.
|
|
Nov 13, 2014 at 14:14 | vote | accept | Jash Jacob | ||
Nov 13, 2014 at 13:09 | history | answered | radical | CC BY-SA 3.0 |