Beispiel #1
0
 public static void SpawnRandom(OrganismMotor organismMotor)
 {
     organismMotor.RotateFromCenter(new Vector3(GetRandomNumber(), GetRandomNumber(), GetRandomNumber()));
     organismMotor.SetLookRotation(GetRandomNumber());
 }
Beispiel #2
0
 public static void SpawnFromParent(OrganismMotor organismMotor, Vector3 parentPosition, Vector3 parentRotaiton, float range)
 {
     organismMotor.SetPositionToParent(parentPosition, parentRotaiton);
     organismMotor.RotateFromCenter(new Vector3(GetRandomNumber(range), GetRandomNumber(range), GetRandomNumber(range)));
     organismMotor.SetLookRotation(GetRandomNumber());
 }