public static void SpawnRandom(OrganismMotor organismMotor) { organismMotor.RotateFromCenter(new Vector3(GetRandomNumber(), GetRandomNumber(), GetRandomNumber())); organismMotor.SetLookRotation(GetRandomNumber()); }
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()); }