Created
June 4, 2014 20:31
-
-
Save gregtemp/f8e79aa59cd8603819b5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// First auto generated objects script | |
int $xlimit = 10; | |
int $zlimit = 10; | |
int $boidAmount = 50; | |
string $name; | |
for ($i = 0; $i < $boidAmount; $i++) { | |
polyCone -name coneBoid -radius 0.2; | |
if ($i>0) { | |
string $nameNum1 = $i; | |
$name = ("coneBoid" + $nameNum1); | |
} | |
else { | |
$name = "coneBoid"; | |
} | |
$randy = rand(- $xlimit, $xlimit); | |
$randy2 = rand(- $zlimit, $zlimit); | |
rotate 90 0 0 $name; | |
move $randy 0 $randy2; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment